Skip to main content

Module write_tree

Module write_tree 

Source
Expand description

Build tree objects from index entries (git write-tree core logic).

Functionsยง

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 from index; every other path is copied from base_tree_oid (typically HEAD^{tree}).