4 ms·
I’m not GP, but the main one I see if the mental model that a commit is a full representation of the contents of the repo at the time that commit was created (r
by DiggyJohnson 3y ago
I’m not GP, but the main one I see if the mental model that a commit is a full representation of the contents of the repo at the time that commit was created (rather than being a change set or deltas between commits).
- Brian_K_White 3y agoRight in this subthread people have said that. I now have no idea what is right. Which seems to only support the comics assertion, which was only "you might think x but you'd be wrong"
- weaksauce 3y agooriginally every commit was a full snapshot of the current state of the repository. the repository is now compressed after the fact using deltas but like another person said but it’s really just an implementation detail.
- Karellen 3y agoUm, I'm pretty sure that one's not a lie. Yes, git currently stores deltas between commits in its pack files, but that's an implementation detail to save space. Importantly, it's not how git was originally written, but was added at a later time (although, still a long time ago now). Edit: https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3...