gix_merge

Module tree

Source
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 the resolution field.
  • A way to configure tree().
  • The outcome produced by tree().
  • Determine what should be considered an unresolved conflict.

Enums§

Functions§

  • Returns true if index changed as we applied conflicting stages to it, using how 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 if removal_mode is RemovalMode::Mark. For proper removal, choose RemovalMode::Prune. It’s important that index matches the tree that was produced as part of the merge that also brought about conflicts, or else this function will fail if it cannot find the path matching the conflicting entries.