Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: