git-log--graph icon indicating copy to clipboard operation
git-log--graph copied to clipboard

Not always showing branch parent connection

Open Chrismettal opened this issue 1 year ago • 1 comments

Branches stacked on top of other branches do not show a line connecting them to their parent.

This is OK most of the time, but if the child branch diverges to the side after a merge you would think the branch is a child only of one of the merge parents.

This is what the repo looks like in git graph:

GitGraph

And this is in GitLG. Note the missing line making it appear as if the yellow branch is not a merge at all and has been divergent for a while.

GitLG

Chrismettal avatar Dec 05 '24 17:12 Chrismettal

How does this look if you run git log --graph --oneline ?

hansu avatar Jan 02 '25 17:01 hansu

Might have been fixed with release a few months ago. Either way, tried but can't reproduce, need a public repo for this where the issue is visible.

phil294 avatar Jun 12 '25 14:06 phil294

Sorry, the repo this example came from is private and has been rebased since so the condition doesn't exist anymore. Should have kept a copy to confirm.

Chrismettal avatar Jun 13 '25 08:06 Chrismettal

sure, I understand. pls make sure to share it if you encounter it again :)

phil294 avatar Jun 29 '25 23:06 phil294