Skip to main content

native_index_tree

Function native_index_tree 

Source
pub fn native_index_tree(repo: &RepoRef) -> Result<Oid>
Expand description

The tree of the index on disk, written to the object database, with no process. The undo journal calls it for every backend: a tree id is the same whoever computes it, and it keeps system-git staging at one process. Errors (conflicts, a split or sparse index libgit2 cannot read) are the caller’s cue to ask the backend instead.