The screenshot below is taken from SourceTree. I created a simple git repository with several commits in it. For each commit, a comment indicates which branch I was on when I committed.

As you can see, the tree diagram is (possibly) not optimal in that the fixations for the masters do not have the same color and are not in the same strip. Why is this?
(The tree diagrams drawn by GitHub and BitBucket seem to suffer from similar issues, so this is not just SourceTree.)
Obviously, this does not really matter in this simple example, but in some of my projects we use the git -flow option, and it is often difficult to track each of the swimlanes git -flow "when you look at the tree diagram. This is partly due to that the tree diagram does not preserve every fin of the same color over time.
My suspicion is that the tree diagram is (possibly) suboptimal, since the git repo does not actually contain enough information to draw the tree diagram the way I want it. In particular, when two commits are children of a common commit (for example, when you join a branch), git does not know if the parent commit is βin the same branchβ as child 1 or child 2. Or, in other words, it does not know which child was a branch, and which was a continuation of the trunk. Do I have this right?
source share