pub fn revert_uncommitted(repo_root: &Path) -> Result<(), GitError>
Revert uncommitted changes, restoring the working tree to current HEAD.
This discards ONLY uncommitted changes. It does NOT reset to a pre-run SHA.