Skip to content

0.30.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Jul 03:05
· 4706 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

Added support for HTML and Julia.

Display

Fixed an issue where line numbers were coloured even when colour was disabled.

Improved alignment when files contain Unicode characters that are more than one column wide.

Improved syntax highlighting for conditionals, particularly for Dart, Elvish and HCL.

Command Line Interface

--node-limit has been replaced by --graph-limit, and the corresponding environment variable DFT_NODE_LIMIT has been replaced with DFT_GRAPH_LIMIT.

--graph-limit makes difftastic give up on structural diffs after traversing this many graph nodes. --node-limit applied a limit based on an estimate of how big the graph would be, leading to very slow diffs when the estimate was wrong.

This new setting sets a more accurate limit on difftastic performance. It also means that difftastic will always try a structural diff first. This will be slower for files that exceed --graph-limit, but guarantees that files with a small number of changes will always get a structural diff.