Skip to main content

reset_paths_to

Function reset_paths_to 

Source
pub fn reset_paths_to(treeish: &str, paths: &[String], dir: &str) -> Result<()>
Expand description

Reset the index entries for paths to their state in treeish, leaving every other index entry and the worktree untouched.

Used after compose when the real index drifted mid-run: the committed snapshot paths are refreshed while anything staged during the run stays staged.