Expand description
Modules§
Structs§
- A description of a conflict (i.e. merge issue without an auto-resolution) as seen during a tree-merge. They may have a resolution that was applied automatically, or be left for the caller to resolved.
- A conflicting entry for insertion into the index. It will always be either on stage 1 (ancestor/base), 2 (ours) or 3 (theirs)
- Information about a blob content merge for use in a
Resolution
. Note that content merges always count as success to avoid duplication of cases, which forces callers to check for theresolution
field. - A way to configure
tree()
. - The outcome produced by
tree()
. - Determine what should be considered an unresolved conflict.
Enums§
- The error returned by
tree()
. - Describes of a conflict involving our change and their change was specifically resolved.
- Describes of a conflict involving our change and their failed to be resolved.
- Decide how to resolve tree-related conflicts, but only those that have no way of being correct.
Functions§
- Returns
true
ifindex
changed as we applied conflicting stages to it, usinghow
to determine if a conflict should be considered unresolved. Once a stage of a path conflicts, the unconflicting stage is removed even though it might be the one that is currently checked out. This removal is only done by flagging it with gix_index::entry::Flags::REMOVE, which means these entries won’t be written back to disk but will still be present in the index ifremoval_mode
isRemovalMode::Mark
. For proper removal, chooseRemovalMode::Prune
. It’s important thatindex
matches the tree that was produced as part of the merge that also brought aboutconflicts
, or else this function will fail if it cannot find the path matching the conflicting entries.