Skip to main content

discard_hunk

Function discard_hunk 

Source
pub fn discard_hunk(
    repo_path: &Path,
    file_path: &str,
    hunk: &[DiffLine],
) -> Result<(), String>
Expand description

Discard a single hunk of unstaged changes in the working tree (equivalent to git apply --reverse -).