Skip to main content

sync_index_to_tree

Function sync_index_to_tree 

Source
pub fn sync_index_to_tree(
    root: &Path,
    store: &ObjectStore,
    tree_hash: Hash,
) -> Result<(), String>
Expand description

Rewrite .mkit/index so it exactly mirrors tree_hash.

mkit commit now signs the index, so commands that move HEAD and materialize a committed tree must keep the index aligned with that snapshot.