Function similar::group_diff_ops

source ·
pub fn group_diff_ops(ops: Vec<DiffOp>, n: usize) -> Vec<Vec<DiffOp>>
Expand description

Isolate change clusters by eliminating ranges with no changes.

This will leave holes behind in long periods of equal ranges so that you can build things like unified diffs.