Re:Git Branches: Intuition and Reality
by dayjaby on Thursday November 23, 2023 @04:42PM
(#38397900)
It is a tree. What makes you think it's just a DAG? Are there commits with multiple parent commits or what?
There absolutely can be. Merge commits have multiple parent commits for example. It's definitely a graph not just a tree.
Re:Git Branches: Intuition and Reality
by dayjaby on Thursday November 23, 2023 @05:41PM
(#38398479)
Parent comment was about disregarding merge commits.
You can't disregard merge commits. It's part of the structure.
Yes. Merge commits have two parents.
Without disregarding them, it's not a tree, but a DAG.