Skip to main content

word_diff_ops_imara

Function word_diff_ops_imara 

Source
pub fn word_diff_ops_imara(
    old_words: &[&str],
    new_words: &[&str],
) -> Vec<DiffOp>
Expand description

Diff two token streams with a faithful port of Git’s xdiff Myers engine and return the result as similar::DiffOps. Used by the word-diff machinery, where matching Git’s exact record selection and tie-breaking matters: imara-diff/similar pick different — but equally minimal — alignments for streams with many repeated tokens (e.g. the bibtex driver’s {/}/,), mismatching Git’s reference output.