Skip to main content

diff_lines

Function diff_lines 

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

Diff two texts line-wise into hunks with context unchanged lines around each change — the same Hunk/Line shapes parse_unified_diff produces. Identical texts yield no hunks.