Difftastic is a structural diff tool that understands syntax. See the manual to get started, and the changelog for historical changes.
Manual
Added a Chinese translation: https://difftastic.wilfred.me.uk/zh-CN/
Diffing
Improved runtime performance and memory usage (thanks to @QuarticCat).
Standalone .
is now considered punctuation in the diff cost model, which improves diff results in some cases.
Parsing
Updated to the latest tree-sitter parser for Swift.
Command Line Interface
Difftastic will now read a file from stdin if given -
as a path argument.
Added an option --context
to control the number of lines of context displayed.
--list-languages
now respects the value of --color
, whose default only uses styling when stdout is a TTY.
Display
Fixed side-by-side display width when color is disabled (when piping difftastic stdout or with --color=never
).
Build
Fixed an issue with building on Windows with gcc.