Adding an argument to a function is a really compelling case for syntactic diffs.
Line numbers remain super tricky: mapping overlapping positions spanning multiple lines back to lines isn't quite right yet.
Here's a tricky diff situation I haven't seen before: a minimal text diff can be ugly.
It would be nicer to match line 6 on the left with line 3 on the right, so the removed region is contiguous.
(git-diff handles this case nicely already.)
Wilfred Hughes
Shared words: tricky, case, diffs, Line, right
Score: 137.4
My favourite page in the difftastic manual is the Tricky Cases discussion.
Syntactic diffs/tree diffs have a completely different set of corner cases to textual diffs. It's a useful resource for anyone exploring this space.
I'm adding C support to difftastic, and it's showing some really interesting examples of tree diffing.
In this case, difftastic considers the second `+` in `x + colwidth + diff` to be unchanged. This is because `+` is right associative in C!
Wilfred Hughes
Shared words: Adding, really, case, diffs, right
Score: 101.7