3 ms·
>… you will eventually need to explain that a commit is actually a combination of diffs, along with some other metadata like a pointer to a parent commit. Only
by still_grokking 6y ago
>… you will eventually need to explain that a commit is actually a combination of diffs, along with some other metadata like a pointer to a parent commit.
Only that this is completely wrong.
A commit is a snapshot of the tree. There are no diffs.
There is also no "metadata attached" — the commit is the actual data (!) describing the tree snapshot.
Git is a kind of simple content addressable object store storing kind of Merkle tree objects. That would be a proper (abstract) description.