3 ms·
I wish that the diff/patch would be able to better take into account moved data (not only as deletion+add but with with a proper semantic indicating the moved b
by karteum 1y ago
I wish that the diff/patch would be able to better take into account moved data (not only as deletion+add but with with a proper semantic indicating the moved block). This would both lead to smaller and more readable patches.
I noticed that some peoble have worked on such an algorithm, e.g. https://en.wikipedia.org/wiki/User:Cacycle/diff https://en.wikipedia.org/wiki/User:Cacycle/diff
- Scaevolus 1y agoHave you seen https://semanticdiff.com/ https://semanticdiff.com/ ?
- leeoniya 1y agoand https://github.com/Wilfred/difftastic https://github.com/Wilfred/difftastic
- o11c 1y agoIf you squint hard enough, that's also what `git` does at the file level, when it detects renames even if the file changed.