Skip to main content

parse_hunks

Function parse_hunks 

Source
pub(super) fn parse_hunks(section: &str) -> Vec<Hunk>
Expand description

Parse one file’s diff section into individual hunks. Hunks are @@-delimited; each line in a hunk body starts with one of - (removed), + (added), (context), or \ (newline annotation, dropped).