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

A diff between two files isn’t unique, meaning there can be better or worse diffs between the same two versions of a file, depending on the file format and possibly the purpose of the diff. Similarly, there can be different strategies for applying a diff as a patch.

Having a diff format allows decoupling the implementation of diff creation from the implementation of diff application, turning a potential n*m problem into an n+m problem.



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

Search: