4 ms·
> but it's not too hard to reconstruct forward history based on all refs (branches for this purpose). (see "git rev-list"). The branch name is not preserved i
by chx 9y ago
> but it's not too hard to reconstruct forward history based on all refs (branches for this purpose). (see "git rev-list").
The branch name is not preserved in commits. I am curious of what you are thinking of. You can not reconstruct a branch, it's impossible.
- AceJohnny2 9y agoIndeed. However I'm not claiming you can reconstruct a branch, just that you can reconstruct forward history using current branches (refs)
- JetSpiegel 9y ago> The branch name is not preserved in commits. This is technically correct, the best kind, but it's not the whole story. The default merge commit message does contain the branch names. Unless it's a fast-forward, in which you maintain linear history, so there are no problems.
- joesb 9y agoRelying on commit message which can be anything is not a valid approach.