4 ms·
I'd love an explanation of what "generation numbers" are.
by macrael 15y ago
I'd love an explanation of what "generation numbers" are.
- pufuwozu 15y agoLooking at the diff, it seems like a generation number is just a number the parents that a commit has. For example: Commit a553af has no parents, it has generation number of 0. Commit c464e0 is the next commit, it has generation number 1. And so on. Branches count independently of one another. When commits have multiple parents (e.g. merges), the generation number starts counting from the previous maximum.
- pyre 15y ago> just a number the parents that a commit has It's the max length from a commit to reach a root node in the graph. So any time that you hit a fork in the path you take the longest route.
- malkia 15y agohttp://news.ycombinator.com/item?id=2765942 http://news.ycombinator.com/item?id=2765942 >> OK, finally found a decent explanation of what a Git generation number actually IS: http://www.spinics.net/lists/git/msg161165.html http://www.spinics.net/lists/git/msg161165.html