4 ms·
Nitpick: A commit is not a diff, it is the entire tree. Any diffs you see are computed, not stored. You can export a commit as a diff+pointer-to-prev-commit,
by LukeShu 12y ago
Nitpick: A commit is not a diff, it is the entire tree. Any diffs you see are computed, not stored.
You can export a commit as a diff+pointer-to-prev-commit, but when git imports it, it gets turned back into a full tree.
- jackweirdy 12y agoThat's true. I simplified for the sake of not delving too far into the details, because it makes sense at the smaller level. It's also true that a commit isn't always just one pointer to the commit that came before it, in a merge there are two pointers, from commit_head and merge_head