Re:DiffX – Next-Generation Extensible Diff Format
by signa11 on Wednesday June 04, 2025 @03:08AM
(#44177951)
difftastic: https://difftastic.wilfred.me.uk/ uses tree-sitter for better diff-info, and is, imho, superior to this.
[ Parent
| on HN ]
Re:DiffX – Next-Generation Extensible Diff Format
by JanisErdmanis on Wednesday June 04, 2025 @04:07AM
(#44178329)
This 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.
Re:DiffX – Next-Generation Extensible Diff Format
by chipx86 on Wednesday June 04, 2025 @03:18AM
(#44178013)
difftastic 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.
Re:DiffX – Next-Generation Extensible Diff Format
by touristtam on Wednesday June 04, 2025 @05:45AM
(#44178924)
Seen it before, but I might try this time.
FWIW: mise install is breaking due to the submodule. I had to resort to brew install