Skip to main content

parse_numstat

Function parse_numstat 

Source
fn parse_numstat(raw: &str) -> Vec<GitDiffFile>
Expand description

Parse <added>\t<removed>\t<path> lines. Skips binary entries (added or removed reported as -). Uses splitn(3, '\t') so paths containing tabs survive intact.

--numstat carries no status code, so every file lands Modified and name_statuses corrects what it can afterwards: a file the merge never reaches keeps the least-alarming class.