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 imara’s Myers implementation (Git’s default xdiff engine) and return the result as similar::DiffOps. Used by the word-diff machinery, where matching Git’s exact LCS tie-breaking matters (similar’s Myers picks different — but equally minimal — alignments, mismatching Git’s reference output for e.g. the ada driver).