4 ms·
difftastic: https://difftastic.wilfred.me.uk/ https://difftastic.wilfred.me.uk/ uses tree-sitter for better diff-info, and is, imho, superior to this.
by signa11 1y ago
difftastic: https://difftastic.wilfred.me.uk/ https://difftastic.wilfred.me.uk/ uses tree-sitter for better diff-info, and is, imho, superior to this.
- chipx86 1y agodifftastic is great! This isn't a tool for viewing changes to files or to ASTs. This is a way of being able to generate a single diff file for processing or patching that addresses the kinds of problems we've encountered in over 20 years of building diff parsing tooling and working with over a dozen SCMs with varying levels of completeness or brokenness of bespoke custom diff formats. It's not an end user tool, but a useful format for tools like code review products to use.
- JanisErdmanis 1y agoThis looks great. The diff is quite inefficient for patching with the C preprocessor branches. Since it patches the code, looking at its tree structure, is the diff human readable, and can it be edited directly? This is a major contributor to why I opt for sed for patching.
- touristtam 1y agoSeen it before, but I might try this time. FWIW: mise install is breaking due to the submodule. I had to resort to brew install