Skip to main content

normalize_diff

Function normalize_diff 

Source
pub(crate) fn normalize_diff(diff: &str) -> String
Expand description

Normalize a git diff for dedup: drop the index <hash>..<hash> lines whose blob hashes are noise, so two textually identical changes compare equal.