Skip to main content

diff_line_texts

Function diff_line_texts 

Source
pub fn diff_line_texts(diff: &str) -> HashMap<String, HashMap<u64, String>>
Expand description

Map each new-side file path to { line number -> line text } (added or context lines, the leading +/space stripped), for the new version of the file. The content companion to parse_valid_lines, used to confirm a re-anchor by matching a finding to what’s actually on a nearby diff line.