3 ms·
- https://github.com/dandavison/delta https://github.com/dandavison/delta is nice for a prettier presentation of the same information as `git diff`. - This may
by ilyagr 2y ago
- https://github.com/dandavison/delta https://github.com/dandavison/delta is nice for a prettier presentation of the same information as `git diff`.
- This may or may not qualify, since I think GNU diff supports it with an option, as does Git diff, but "Color-words" diff can be nice, where changes in the middle of the line are highlighted and whitespace is ignored.
- Somebody already recommended https://github.com/Wilfred/difftastic https://github.com/Wilfred/difftastic, which I second. It uses treesitter and is very interesting. Surprisingly, in practice difftastic is not always noticeably better than color words diff (don't expect miracles), but occasionally it is much better.
For the last two, see Difftastic's FAQ, https://github.com/Wilfred/difftastic#isnt-this-basically---word-diff---ignore-all-space https://github.com/Wilfred/difftastic#isnt-this-basically---...
Update: Finally, this blog post about difftastic describes some details: https://www.wilfred.me.uk/blog/2022/09/06/difftastic-the-fantastic-diff/ https://www.wilfred.me.uk/blog/2022/09/06/difftastic-the-fan...
Update 2: Finally finally, Difftastic's wiki has more related tools: https://github.com/Wilfred/difftastic/wiki/Structural-Diffs https://github.com/Wilfred/difftastic/wiki/Structural-Diffs. Difftastic's author writes many interesting things, it seems :).