Skip to main content

compute_diff

Function compute_diff 

Source
pub fn compute_diff(old: &Vec<&str>, new: &Vec<&str>) -> Vec<DiffOp>
Expand description

Compute a minimal, stable diff using LCS alignment and pairing gaps into Update/Append/Insert/Remove. Indices in DiffOp are relative to the evolving vector during application.