top | item 45433617

(no title)

karteum | 5 months 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

discuss

order

o11c|5 months ago

If you squint hard enough, that's also what `git` does at the file level, when it detects renames even if the file changed.