Skip to main content

changed_lines

Function changed_lines 

Source
pub fn changed_lines(diff: &str) -> ChangedLines
Expand description

Parse git diff --unified=0 output into the lines each file gained.

Only the post-image side is read. A deleted line has no line in the new file to cover, and counting it would ask a patch to test code it removed.