{"thread":{"id":"64610","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","startedAt":"2025-12-11T09:43:23Z","lastAt":"2025-12-18T23:03:24Z","messageCount":3,"participants":["Skybuck Flying","D. Ben Knoble"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"532038","messageId":"AM0PR02MB44500013C2F28CBBD99A113EB3A1A@AM0PR02MB4450.eurprd02.prod.outlook.com","threadId":"64610","inReplyTo":null,"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","fromName":"Skybuck Flying","fromEmail":"skybuck2000@hotmail.com","sentAt":"2025-12-11T09:43:20Z","receivedAt":"2025-12-11T09:43:23Z","isPatch":false,"sender":{"key":"skybuck2000@hotmail.com","avatar":"https://gravatar.com/avatar/4ab663b18fe6174125b5b436538d435bbddad844433e1165b4d64363106e4114?d=mp&s=160"},"body":"git log --graph --all would show something like:\n\nX:\\Vite\\Repository\\LocalControl>git log --graph --all\n* commit c2234c6162cae9e7bfe5013a76b6c381092046fb (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler, Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)\n| Author: Skybuck Flying <skybuck2000@hotmail.com>\n| Date:   Thu Dec 11 10:15:51 2025 +0100\n|\n|     SystemPrompt.md +FPC testing, +common/types uses.\n|\n|     SystemPrompt.md updated for:\n|     + Use FPCUnit for testing with Free Pascal Compiler.\n|     + Special directives for common/types imports/uses clausules.\n\norigin is a remote (the github remote)\nRepository is also a remote (locally on my disk).\n\nBoth branches are in red:\norigin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler\nRepository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler\n\nThere 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.\n\nMaybe 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:\n\nAllow mixed colors in these remote branches.\n\nSo the origin part becomes pink.\nSo the Repository part becomes pink.\n\nSo that it's more clear what part of it is a *true* remote and what part of it is a *true* branch.\n\nFurther info:\n\nX:\\Vite\\Repository\\LocalControl>git remote -v\nRepository      X:\\Vite\\Repository\\Mirror (fetch)\nRepository      X:\\Vite\\Repository\\Mirror (push)\norigin  https://github.com/SkybuckFlying/SkyVite.git (fetch)\norigin  https://github.com/SkybuckFlying/SkyVite.git (push)\nupstream        https://github.com/vitelabs/go-vite.git (fetch)\nupstream        https://github.com/vitelabs/go-vite.git (push)\n\nBye,\n  For now,\n   Skybuck.\n\nP.S.:\n\nHere is the AI version of it, in case you find it easier to read :):\n\nHello,\n\nWhen running `git log --graph --all`, I see decorations like:\n\n* commit c2234c6162cae9e7bfe5013a76b6c381092046fb\n  (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler,\n   Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)\n\nBoth `origin/...` and `Repository/...` are shown in red. In my setup:\n\n- origin = GitHub remote\n- Repository = local mirror remote (X:\\Vite\\Repository\\Mirror)\n\nThis makes it hard to visually distinguish the *remote name* from the *branch name*.\nIt’s also possible to accidentally create a branch whose name collides with a remote\nname, which adds to the confusion.\n\n**Proposal:**\nAllow mixed colors for remote branch decorations, so that:\n- The remote part (`origin`, `Repository`, etc.) is shown in one color (e.g. pink).\n- The branch part (`Branch/Feature/...`) remains in another color (e.g. red).\n\nThis would make it clearer which part of the decoration is the true remote and which\npart is the branch name.\n\nCurrent remotes in my repo:\n  Repository      X:\\Vite\\Repository\\Mirror (fetch/push)\n  origin          https://github.com/SkybuckFlying/SkyVite.git (fetch/push)\n  upstream        https://github.com/vitelabs/go-vite.git (fetch/push)\n\nThanks for considering,\n  Skybuck Flying"},{"id":"532094","messageId":"CALnO6CBt7Z9bRhOzci8S+QndYUQUEszYHxfqHqiHkTXQ67ptsg@mail.gmail.com","threadId":"64610","inReplyTo":"AM0PR02MB44500013C2F28CBBD99A113EB3A1A@AM0PR02MB4450.eurprd02.prod.outlook.com","subject":"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","fromName":"D. Ben Knoble","fromEmail":"ben.knoble@gmail.com","sentAt":"2025-12-12T22:06:45Z","receivedAt":"2025-12-12T22:06:57Z","isPatch":false,"sender":{"key":"ben.knoble@gmail.com","avatar":"https://avatars.githubusercontent.com/u/22802209?v=4"},"body":"On Thu, Dec 11, 2025 at 4:46 AM Skybuck Flying <skybuck2000@hotmail.com> wrote:\n>\n> git log --graph --all would show something like:\n>\n> X:\\Vite\\Repository\\LocalControl>git log --graph --all\n> * commit c2234c6162cae9e7bfe5013a76b6c381092046fb (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler, Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)\n> | Author: Skybuck Flying <skybuck2000@hotmail.com>\n> | Date:   Thu Dec 11 10:15:51 2025 +0100\n> |\n> |     SystemPrompt.md +FPC testing, +common/types uses.\n> |\n> |     SystemPrompt.md updated for:\n> |     + Use FPCUnit for testing with Free Pascal Compiler.\n> |     + Special directives for common/types imports/uses clausules.\n>\n> origin is a remote (the github remote)\n> Repository is also a remote (locally on my disk).\n>\n> Both branches are in red:\n> origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler\n> Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler\n>\n> 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.\n>\n> 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:\n>\n> Allow mixed colors in these remote branches.\n>\n> So the origin part becomes pink.\n> So the Repository part becomes pink.\n\nPerhaps try configuring color.decorate.branch or color.decorate.remoteBranch?\n"},{"id":"532504","messageId":"CALnO6CBEYaOrqiWTe1HVH=0qEHa=M0CrYwtW68Pe9bMSiXG-5g@mail.gmail.com","threadId":"64610","inReplyTo":"AM0PR02MB44504189178BAD0CB6FA71C7B3AFA@AM0PR02MB4450.eurprd02.prod.outlook.com","subject":"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","fromName":"D. Ben Knoble","fromEmail":"ben.knoble@gmail.com","sentAt":"2025-12-18T23:03:12Z","receivedAt":"2025-12-18T23:03:24Z","isPatch":false,"sender":{"key":"ben.knoble@gmail.com","avatar":"https://avatars.githubusercontent.com/u/22802209?v=4"},"body":"[Back on list; please keep it CC'd]\n\nOn Sat, Dec 13, 2025 at 7:35 AM Skybuck Flying <skybuck2000@hotmail.com> wrote:\n>\n> On Thu, Dec 11, 2025 at 4:46 AM Skybuck Flying <skybuck2000@hotmail.com> wrote:\n> >\n> > git log --graph --all would show something like:\n> >\n> > X:\\Vite\\Repository\\LocalControl>git log --graph --all\n> > * commit c2234c6162cae9e7bfe5013a76b6c381092046fb (origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler, Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler)\n> > | Author: Skybuck Flying <skybuck2000@hotmail.com>\n> > | Date:   Thu Dec 11 10:15:51 2025 +0100\n> > |\n> > |     SystemPrompt.md +FPC testing, +common/types uses.\n> > |\n> > |     SystemPrompt.md updated for:\n> > |     + Use FPCUnit for testing with Free Pascal Compiler.\n> > |     + Special directives for common/types imports/uses clausules.\n> >\n> > origin is a remote (the github remote)\n> > Repository is also a remote (locally on my disk).\n> >\n> > Both branches are in red:\n> > origin/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler\n> > Repository/Branch/Feature/Delphi/SystemPromptUpdateForTestingUsingFreePascalCompiler\n> >\n> > 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.\n> >\n> > 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:\n> >\n> > Allow mixed colors in these remote branches.\n> >\n> > So the origin part becomes pink.\n> > So the Repository part becomes pink.\n>\n> \"\n> Perhaps try configuring color.decorate.branch or color.decorate.remoteBranch?\n> \"\n>\n> Hi,\n>\n> I haven't tried yet, the AI said it colors everything ? (in other words seperate/mixed colors not possible ?) hmmm..\n\nIndeed, it seems I misread your use case. I don't know of a way to\ncolor the \"remote\" in remote-tracking branches (partly probably\nbecause that remote prefix can be changed by changing the fetch\nrefspec). Sorry!\n\n-- \nD. Ben Knoble\n"}]}