2 ms·
Branch is semantic. The true unit is commit and the tree is applying a set of commits. Branching is just selecting a set of commits for a tree. There’s no wrong
by skydhash 1y ago
Branch is semantic. The true unit is commit and the tree is applying a set of commits. Branching is just selecting a set of commits for a tree. There’s no wrong or right branch, there is just the matter of generating the wrong patch
- gouggoug 1y agoBranches are mutable and regularly point to a new commit. Branching is selecting an active line of development, a set of commits that change over time. That's why git also offer tags. Tags are immutable. That's an important distinction.
- ezst 1y agosee my sibling comment here: https://news.ycombinator.com/item?id=45479690 https://news.ycombinator.com/item?id=45479690 tl;dr you lose some semantic (and practical capabilities, UX and effectiveness) when you don't capture branch information at commit-level