|
|
|
|
|
by jdmichal
3119 days ago
|
|
> But git never stores diffs between old and new content; it just creates a new blob every time the content of a file changes. Git pack files compress objects by storing them as diff files going backwards. That is, it stores the most recent state in full, then uses patches to go backwards. Because you're more likely to need a recent version in full than an older one. https://git-scm.com/book/en/v2/Git-Internals-Packfiles |
|
It's still useful and more accurate conceptually to consider every commit as a complete snapshot of the state of code that point.