Skip to main content

rehunk_file

Function rehunk_file 

Source
pub fn rehunk_file(
    file: &FileDiff,
    context: u32,
    algorithm: DiffAlgorithm,
    indent_heuristic: bool,
) -> Option<Vec<Hunk>>
Expand description

Re-diff a file’s own old/new text at context lines (u32::MAX for the whole file). None for binary files or a missing side.