pub fn discard_hunk( repo_path: &Path, file_path: &str, hunk: &[DiffLine], ) -> Result<(), String>
Discard a single hunk of unstaged changes in the working tree (equivalent to git apply --reverse -).
git apply --reverse -