Module jj_lib::merged_tree

source ·
Expand description

A lazily merged view of a set of trees.

Structs§

  • Presents a view of a merged set of trees.
  • Helps with writing trees with conflicts. You start by creating an instance of this type with one or more base trees. You then add overrides on top. The overrides may be conflicts. Then you can write the result as a legacy tree (allowing path-level conflicts) or as multiple conflict-free trees.
  • A single entry in a tree diff.
  • Iterator over the differences between two trees.
  • Stream of differences between two trees.
  • Recursive iterator over the entries in a tree.

Functions§

  • Tries to resolve file conflicts by merging the file contents. Treats missing files as empty. If the file conflict cannot be resolved, returns the passed values unmodified.

Type Aliases§

  • Type alias for the result from MergedTree::diff_stream(). We use a Stream instead of an Iterator so high-latency backends (e.g. cloud-based ones) can fetch trees asynchronously.