0.58.0
版本发布时间: 2024-05-12 06:53:15
Wilfred/difftastic最新发布版本:0.60.0(2024-08-01 23:29:40)
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.
1、 difft-aarch64-apple-darwin.tar.gz 9.7MB
2、 difft-aarch64-unknown-linux-gnu.tar.gz 9.52MB
3、 difft-x86_64-apple-darwin.tar.gz 9.16MB
4、 difft-x86_64-pc-windows-msvc.zip 8.69MB
5、 difft-x86_64-unknown-linux-gnu.tar.gz 9.54MB