News for hackers. Stuff that matters.
Re:Git’s database internals I: packed object store by giancarlostoro on Monday August 29, 2022 @11:54AM (#32639717)
It's easy to forget that code is... so small, but I guess if your codebase on its own was hundreds of megabytes big, then that would become noticed more quickly. I never realized it stored a copy every time, I assumed it used diffs. So git uses the same solution some of us use when we're about to do something on git we're unfamiliar with... you copy the entire directory housing your code + git repo into a new location just in case it fails miserably.
Re:Git’s database internals I: packed object store by NavinF on Monday August 29, 2022 @04:01PM (#32642835)
> I never realized it stored a copy every time, I assumed it used diffs

git does store diffs. People are confusing the logical representation with the on-disk layout.