Skip to main content

hunks

Function hunks 

Source
pub fn hunks(head: &str, current: &str) -> Vec<Hunk>
Expand description

Group the line diff between committed text (head) and the current buffer into Hunks — maximal runs of adjacent changed lines — in current-line order. Pairs with diff_marks (which colors individual gutter lines).