Re:Git’s database internals I: packed object store
by juped on Monday August 29, 2022 @01:45PM
(#32641177)
There are two ways commits can be treated in Git. Most of the time, a commit is a specific tree and some metadata. There are, however, some rebase-like operations that use the commit metadata to treat a commit as a diff against one or more parents which it points to. You're wrong in this discussion because it's about storage, but you do need to flip into this dual view of the commit graph to use rebase-like operations correctly.
[ Parent
| on HN ]
Re:Git’s database internals I: packed object store
by cryptonector on Monday August 29, 2022 @02:13PM
(#32641502)
Exactly. Thinking of commits as diffs helps think about rebasing.