Skip to main content

hunk_id

Function hunk_id 

Source
pub fn hunk_id(file_path: &str, lines: &[DiffLine], occurrence: usize) -> HunkId
Expand description

occurrence counts earlier hunks in the file with the same content, so identical hunks get distinct ids. Prefer disambiguated_hunk_id.