News for hackers. Stuff that matters.
Re:Commits are snapshots not diffs (2020) by jepler on Thursday April 08, 2021 @02:56PM (#26742381)
If your VC isn't plumbed all the way into your editor, you can't tell changing a typo from deleting and re-typing the whole file when it comes time to create a delta.
Re:Commits are snapshots not diffs (2020) by lann on Thursday April 08, 2021 @03:05PM (#26742478)
There is a `git mv` command that means "rename". Git could (even with its current data model) explicitly annotate commits with this intent, but doesn't. I don't know how useful that would be compared to the current heuristics, but it does mean that git commit "snapshots" are not (quite) isomorphic to a diff format (like posix diff's) that can explicitly encode renames.