News for hackers. Stuff that matters.
Re:Git’s database internals I: packed object store by cryptonector on Monday August 29, 2022 @01:22PM (#32640869)
Surely you must know what the word "model" means.
Re:Git’s database internals I: packed object store by juped on Monday August 29, 2022 @01:42PM (#32641125)
It doesn't mean "get out of jail free card for cryptonector being wrong", no.

The simplified model that leaves out tricky implementation details is just "every file that's different is a different blob object, stored in full on its own, under the hash of its contents". If you work with this model, you're basically correct in all your reasoning, except that in reality a bit less storage is used because some objects get packed. If you work with the wrong (wrong! not simplified, wrong!) model "every blob object is stored as base-and-deltas", you won't reason correctly about either how the object store presents itself in plumbing commands or how it's stored.

Re:Git’s database internals I: packed object store by cryptonector on Monday August 29, 2022 @02:16PM (#32641542)
> It doesn't mean "get out of jail free card for cryptonector being wrong", no.

I never said that Git commits are diffs. Keep it civil.

> The simplified model that leaves out tricky implementation details [...]

Models do that.

> If you work with this model, you're basically correct in all your reasoning, except that in reality a bit less storage is used because some objects get packed.

That's it? That's the one detail that should stop me thinking correctly based on this model?