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().

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.
  • Determine what should be considered an unresolved conflict.

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, however, 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. 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.