Skip to main content

changed_lines

Function changed_lines 

Source
pub fn changed_lines(old: &str, new: &str) -> usize
Expand description

The number of changed (inserted or deleted) lines between old and new — a cheap proxy for edit size, useful for budgeting and for choosing whole-file vs diff transport.