Skip to main content

hunk_id

Function hunk_id 

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

Hash the hunk’s content (kinds + text) into a stable id using git’s blob hashing, so no extra hash dependency is needed.