Should branches be objects?
- From
- Nico Williams <nico@cryptonector.com>
- Date
- Jun 19, 2014, 21:37 UTC
- Message-ID
- <CAK3OfOiB0YWf25Hvvvqi+YBwu2V-gE-sjm7XrfE0p2zds4CE2Q@mail.gmail.com>
[I'm a list newbie here, but a git power user.]
If branches were objects...
- one could see the history of branches, including
- how commits were grouped when pushed/pulled (push 5 commits, and the branch object will record that its head moved by those five commits at once)
- rebase history (git log <branch-object> -> better than git reflog!)
- object transactional APIs would be used to update branches
Branch objects might be purely local, recording what was done in a local repo to a branch, but they might be pullable, to make branch history viewable in clones.
Just a thought,
Nico --