4 ms·
Commits are conceptually snapshots, and everything else Git does is just an optimization over the naive “keep all versions of all files ever” (imagine implement
by siawyoung 5y ago
Commits are conceptually snapshots, and everything else Git does is just an optimization over the naive “keep all versions of all files ever” (imagine implementing a version of Git that is just zipping the entire folder). Diffs are isomorphic to commits and are generated as needed.
I wrote about it (albeit imprecisely) here: https://siawyoung.com/git-intuition https://siawyoung.com/git-intuition