Skip to main content

trace_line

Function trace_line 

Source
pub fn trace_line(
    old: &[&[u8]],
    new: &[&[u8]],
    new_line: usize,
) -> Option<usize>
Expand description

Where line new_line of the new file came from in the old one, if it was already there.

None means the line is new in this version — which is exactly the answer a blame stops on.