Skip to main content

discard_line

Function discard_line 

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

Discard a single line from the Unstaged diff in the working tree.