I've been rewriting how difftastic calculates hunks, and it's beginning to look good!
Alignment is a crazy hard problem. Added/removed items have no corresponding item on the other side. You can't use even previous line text (see left line 219) as previous lines may not match.
miniblog.
Related Posts
Difftastic 0.67 is released!
* Added support for protobuf, improved bash and YAML.
* Updated 16 parsers to the latest upstream version (thanks Antonin Delpeuch!)
* A ton of display polish for word highlighting, alignment, and binary files.
Showing lines of context is a remarkably hard problem for a syntactic diff.
Line 23 on the right is new, but lines 24 and 25 also map to the same line on the left! Initially I thought this was a bug.
It's impossible to show exactly N context lines whilst preserving alignment.
Difftastic 0.23 is out! I've been tuning diffing and display and I think the results look fantastic.
* Parent delimiters are modelled accurately
* Display uses blank lines as an alignment hint
* Textual diffing is way faster too!








