Can’t all commits be turned into patches? Thus, aren’t commits isomorphic to diffs?
Can’t all commits be turned into patches? Thus, aren’t commits isomorphic to diffs?
I've used several patch-based VCs (RCS and CVS) but I think they pre-date this "sound theory of patches" and instead the use of patch-style representation was for optimizing storage. (just as git uses packs and deltas to optimize storage and performance, f'rinstance) So I don't really know what I'm missing.
(If the sound theory of patches would let me better understand what occurred at a merge commit than git's tooling, that'd be just about enough to sell me on switching. except for the network effects of git & github.)
As such, the concept of a "commit" in Git refers to a complete state of everything; a snapshot.
Nearly, though renames are only approximately extracted from the snapshots.