threads / discuss / 64610

Color remote repository part of a remote branch "pink" instead of red. I.E: [Feature Request] Mixed coloring for remote refs in git log --graph --all

Subject: Color remote repository part of a remote branch "pink" instead of red. I.E: [Feature Request] Mixed coloring for remote refs in git log --graph --all

## tl;dr

3 messages between Dec 11, 2025 and Dec 18, 2025.

replies: 2people: 2as markdown or json

Skybuck Flying· Dec 11, 2025, 09:43 UTC · lore
git log --graph --all would show something like:
X:\Vite\Repository\LocalControl>git log --graph --all
* commit c2234c6162cae9e7bfe5013a76b6c381092046fb (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler, Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)
| Author: Skybuck Flying <skybuck2000@hotmail.com>
| Date:   Thu Dec 11 10:15:51 2025 +0100
|
|     SystemPrompt.md +FPC testing, +common/types uses.
|
|     SystemPrompt.md updated for:
|     + Use FPCUnit for testing with Free Pascal Compiler.
|     + Special directives for common/types imports/uses clausules.

origin is a remote (the github remote) Repository is also a remote (locally on my disk).

Both branches are in red: origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler

There is the possibility when creating branches in all kinds of ways of accidently naming it the same as the remote, so it's not really a remote, but it's just some kind of branch name with happens to have the same remote name.
Maybe these remote branch names are just one string and the difference don't matter or maybe it does matter, I think it does matter, if it does matter/stored differently then the idea is to:
Allow mixed colors in these remote branches.

So the origin part becomes pink. So the Repository part becomes pink.

So that it's more clear what part of it is a *true* remote and what part of it is a *true* branch.
Further info:

X:\Vite\Repository\LocalControl>git remote -v Repository X:\Vite\Repository\Mirror (fetch) Repository X:\Vite\Repository\Mirror (push) origin https://github.com/SkybuckFlying/SkyVite.git (fetch) origin https://github.com/SkybuckFlying/SkyVite.git (push) upstream https://github.com/vitelabs/go-vite.git (fetch) upstream https://github.com/vitelabs/go-vite.git (push)

Bye,
  For now,
   Skybuck.
P.S.:
Here is the AI version of it, in case you find it easier to read :):
Hello,
When running `git log --graph --all`, I see decorations like:
* commit c2234c6162cae9e7bfe5013a76b6c381092046fb
  (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler,
   Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)
Both `origin/...` and `Repository/...` are shown in red. In my setup:
- origin = GitHub remote
- Repository = local mirror remote (X:\Vite\Repository\Mirror)

This makes it hard to visually distinguish the *remote name* from the *branch name*. It’s also possible to accidentally create a branch whose name collides with a remote name, which adds to the confusion.

**Proposal:**
Allow mixed colors for remote branch decorations, so that:
- The remote part (`origin`, `Repository`, etc.) is shown in one color (e.g. pink).
- The branch part (`Branch/Feature/...`) remains in another color (e.g. red).

This would make it clearer which part of the decoration is the true remote and which part is the branch name.

Current remotes in my repo:
  Repository      X:\Vite\Repository\Mirror (fetch/push)
  origin          https://github.com/SkybuckFlying/SkyVite.git (fetch/push)
  upstream        https://github.com/vitelabs/go-vite.git (fetch/push)
Thanks for considering,
  Skybuck Flying
D. Ben Knoble· Dec 12, 2025, 22:06 UTC · re: Skybuck Flying · lore

Re: Color remote repository part of a remote branch "pink" instead of red. I.E: [Feature Request] Mixed coloring for remote refs in git log --graph --all

On Thu, Dec 11, 2025 at 4:46 AM Skybuck Flying <skybuck2000@hotmail.com> wrote:
Show 29 quoted lines
>
> git log --graph --all would show something like:
>
> X:\Vite\Repository\LocalControl>git log --graph --all
> * commit c2234c6162cae9e7bfe5013a76b6c381092046fb (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler, Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)
> | Author: Skybuck Flying <skybuck2000@hotmail.com>
> | Date:   Thu Dec 11 10:15:51 2025 +0100
> |
> |     SystemPrompt.md +FPC testing, +common/types uses.
> |
> |     SystemPrompt.md updated for:
> |     + Use FPCUnit for testing with Free Pascal Compiler.
> |     + Special directives for common/types imports/uses clausules.
>
> origin is a remote (the github remote)
> Repository is also a remote (locally on my disk).
>
> Both branches are in red:
> origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler
> Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler
>
> There is the possibility when creating branches in all kinds of ways of accidently naming it the same as the remote, so it's not really a remote, but it's just some kind of branch name with happens to have the same remote name.
>
> Maybe these remote branch names are just one string and the difference don't matter or maybe it does matter, I think it does matter, if it does matter/stored differently then the idea is to:
>
> Allow mixed colors in these remote branches.
>
> So the origin part becomes pink.
> So the Repository part becomes pink.
Perhaps try configuring color.decorate.branch or color.decorate.remoteBranch?
D. Ben Knoble· Dec 18, 2025, 23:03 UTC · lore

Re: Color remote repository part of a remote branch "pink" instead of red. I.E: [Feature Request] Mixed coloring for remote refs in git log --graph --all

[Back on list; please keep it CC'd]
On Sat, Dec 13, 2025 at 7:35 AM Skybuck Flying <skybuck2000@hotmail.com> wrote:
Show 39 quoted lines
>
> On Thu, Dec 11, 2025 at 4:46 AM Skybuck Flying <skybuck2000@hotmail.com> wrote:
> >
> > git log --graph --all would show something like:
> >
> > X:\Vite\Repository\LocalControl>git log --graph --all
> > * commit c2234c6162cae9e7bfe5013a76b6c381092046fb (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler, Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)
> > | Author: Skybuck Flying <skybuck2000@hotmail.com>
> > | Date:   Thu Dec 11 10:15:51 2025 +0100
> > |
> > |     SystemPrompt.md +FPC testing, +common/types uses.
> > |
> > |     SystemPrompt.md updated for:
> > |     + Use FPCUnit for testing with Free Pascal Compiler.
> > |     + Special directives for common/types imports/uses clausules.
> >
> > origin is a remote (the github remote)
> > Repository is also a remote (locally on my disk).
> >
> > Both branches are in red:
> > origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler
> > Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler
> >
> > There is the possibility when creating branches in all kinds of ways of accidently naming it the same as the remote, so it's not really a remote, but it's just some kind of branch name with happens to have the same remote name.
> >
> > Maybe these remote branch names are just one string and the difference don't matter or maybe it does matter, I think it does matter, if it does matter/stored differently then the idea is to:
> >
> > Allow mixed colors in these remote branches.
> >
> > So the origin part becomes pink.
> > So the Repository part becomes pink.
>
> "
> Perhaps try configuring color.decorate.branch or color.decorate.remoteBranch?
> "
>
> Hi,
>
> I haven't tried yet, the AI said it colors everything ? (in other words seperate/mixed colors not possible ?) hmmm..

Indeed, it seems I misread your use case. I don't know of a way to color the "remote" in remote-tracking branches (partly probably because that remote prefix can be changed by changing the fetch refspec). Sorry!

-- 
D. Ben Knoble

← back to recent threads