Skip to main content

annotate_hunk_word_diff

Function annotate_hunk_word_diff 

Source
pub fn annotate_hunk_word_diff(
    hunk: &DiffHunk,
) -> Vec<(DiffLine, Option<Vec<WordDiffSegment>>)>
Expand description

Produce word-level diff segments for paired Remove/Add lines in a hunk

Returns a new list of DiffLines where consecutive Remove/Add pairs are annotated with word_segments.