Skip to content

0.58.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 May 22:53
· 462 commits to master since this release

Difftastic is a structural diff tool that understands syntax. See the manual to get started, and the changelog for historical changes.

Parsing

Difftastic now preserves tree-sitter parse tree structure on parse error nodes. This reverts the flattening behaviour introduced in 0.38. Preserving structure tends to produce better diffs, although it increases the risk that difftastic will show fewer changes in the presence of parse errors.

Since difftastic is now conservative with parse errors (DFT_PARSE_ERROR_LIMIT is 0 by default), this seems like a better tradeoff.

Updated C, C++, CMake, CSS, Elm, Go, Lua and Python parsers.

Diffing

--strip-cr now defaults to on, so comparing a file with CRLF endings with a file with unix line endings will not show spurious changes.

Documentation

Difftastic now has a man page, see the difft.1 file.

Performance

Fixed a memory leak and improved performance in some cases.

Command Line Interface

Fixed a crash when difftastic could not detect the terminal width, such as inside eshell.

Difftastic now also considers $COLUMNS when detecting the terminal width.