threads / discuss / 61303

Wrong coloring for "git log --oneline --graph --decorate --all"?

Subject: Wrong coloring for "git log --oneline --graph --decorate --all"?

## tl;dr

One message between Apr 10, 2024 and Apr 10, 2024.

replies: 0people: 1as markdown or json

Windl, Ulrich· Apr 10, 2024, 07:22 UTC · lore
Hi!

I think I found a bug for git 2.26.2 regarding "git log --oneline --graph --decorate --all": As the issue is about color, I'm attaching a small sample screenshot with some blue annotation arrows for reference.

I think the issue is that for a branch the "outgoing path to the right" (/) has the wrong color. For example consider commit 5516433: The main branch is red, and the "for off" is also red. The branch itself shows no color, but when merging back at 5a5b97f the color is green. So shouldn't be the whole branch "green"? Or did I misunderstand something?

Another example is the branch starting ad dd9f618: The main branch is red, and the forked branch is yellow, but the "fork off" (/) is red, too. When merged back at a5e424a, it (\) is green.

Likewise I don't understand why "main" branch a5e424a changes color multiple times until being merged at 5516433.
I hope the description is clear enough.

Kind regards, Ulrich

← back to recent threads