Skip to main content

hunks_from_diff

Function hunks_from_diff 

Source
pub fn hunks_from_diff(old: &str, new: &str) -> Vec<Hunk>
Expand description

Derive review hunks from a whole-file before/after pair.

Line granularity, because that is the unit a human reviews in — and it is what makes a hunk correspond to something you can point at on screen.