Expand description
Build tree objects from index entries (git write-tree core logic).
Functions§
- build_
cache_ tree_ from_ index - Build a valid cache-tree extension from the index and write any missing tree objects.
- build_
cache_ tree_ from_ tree - Build a cache-tree directly from a tree object, preserving Git’s raw
entry_countsemantics. Unlikebuild_cache_tree_from_index, the per-nodeentry_countis the recursive number of non-tree entries as recorded in the tree — duplicate path entries are counted separately, exactly as upstream Git’s cache-tree does after reading such a tree into the index. - verify_
cache_ tree - Walk a cache-tree against
index, mirroring Git’sverify_one/cache_tree_verify. - write_
tree_ from_ index - Build and write tree object(s) from index entries and return the tree OID.
- write_
tree_ from_ index_ subset - Build and write tree object(s) from index entries and return the tree OID.
- write_
tree_ partial_ from_ index - Build a tree for a partial commit: paths listed in
paths_from_index(repository-relative, UTF-8 path bytes) are taken fromindex; every other path is copied frombase_tree_oid(typicallyHEAD^{tree}).