Skip to main content

restore_tracked_paths_to_head

Function restore_tracked_paths_to_head 

Source
pub fn restore_tracked_paths_to_head(
    repo_root: &Path,
    paths: &[PathBuf],
) -> Result<(), GitError>
Expand description

Restore tracked paths to the current HEAD (index + working tree).

Paths must be under the repo root; untracked paths are skipped.