pub fn parse_valid_lines(diff: &str) -> HashMap<String, HashSet<u64>>Expand description
Map each new-side file path to the set of line numbers present in the diff (added or context lines). Removed lines don’t advance the new-side counter.
§Examples
let d = "+++ b/a.rs\n@@ -1,2 +1,3 @@\n ctx\n+added\n ctx2\n";
let m = parse_valid_lines(d);
assert!(m["a.rs"].contains(&2)); // the "+added" line is line 2 on the new side