Commit Diff
--- lib/diff_patience.c +++ lib/diff_patience.c @@ -317,6 +317,10 @@ diff_atoms_mark_unique_in_both(struct diff_data *left, PATIENCE(b).pos_in_other = a; unique_in_both_count++; } + + /* j now points at the first atom after 'a' that is not + * identical to 'a'. j is always > i. */ + i = j - 1; } *unique_in_both_count_p = unique_in_both_count; rc = 0;