{"thread":{"id":"53885","subject":"BUG: Cannot use bright colors","startedAt":"2020-07-20T16:35:56Z","lastAt":"2020-07-20T17:13:58Z","messageCount":3,"participants":["Martian Chronicles","SZEDER Gábor","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"401767","messageId":"6244191595262309@mail.yandex.ru","threadId":"53885","inReplyTo":null,"subject":"BUG: Cannot use bright colors","fromName":"Martian Chronicles","fromEmail":"martian.chronicles@yandex.ru","sentAt":"2020-07-20T16:29:52Z","receivedAt":"2020-07-20T16:35:56Z","isPatch":false,"sender":{"key":"martian.chronicles@yandex.ru","avatar":null},"body":"Cannot configure git to use brightred, neither on Windows nor on Ubuntu. \n\nSteps to reproduce: \n\n1. Create ~/.gitconfig with the two lines (or add to them to this file, if it exists):\n\n[color.status]\n        untracked = brightred\n\n2. run `git status` from a directory with untracked files\n\nExpected: output in brightred\nActual on Linux:\nerror: invalid color value: brightred fatal: bad config variable 'color.status.untracked' in file '/home/<username>/.gitconfig' at line 2 \n\nActual on windows:\n brightred=normal=white.\n"},{"id":"401768","messageId":"20200720165535.GI11341@szeder.dev","threadId":"53885","inReplyTo":"6244191595262309@mail.yandex.ru","subject":"Re: BUG: Cannot use bright colors","fromName":"SZEDER Gábor","fromEmail":"szeder.dev@gmail.com","sentAt":"2020-07-20T16:55:35Z","receivedAt":"2020-07-20T16:55:43Z","isPatch":false,"sender":{"key":"szeder.dev@gmail.com","avatar":"https://avatars.githubusercontent.com/u/116324?v=4"},"body":"On Mon, Jul 20, 2020 at 07:29:52PM +0300, Martian Chronicles wrote:\n> Cannot configure git to use brightred, neither on Windows nor on Ubuntu. \n> \n> Steps to reproduce: \n> \n> 1. Create ~/.gitconfig with the two lines (or add to them to this file, if it exists):\n> \n> [color.status]\n>         untracked = brightred\n> \n> 2. run `git status` from a directory with untracked files\n> \n> Expected: output in brightred\n> Actual on Linux:\n> error: invalid color value: brightred fatal: bad config variable 'color.status.untracked' in file '/home/<username>/.gitconfig' at line 2 \n> \n> Actual on windows:\n>  brightred=normal=white.\n\nBright colors are supported since v2.26.0.  What Git version did you\ntry?\n\n"},{"id":"401769","messageId":"20200720171356.GA2045458@coredump.intra.peff.net","threadId":"53885","inReplyTo":"20200720165535.GI11341@szeder.dev","subject":"Re: BUG: Cannot use bright colors","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2020-07-20T17:13:56Z","receivedAt":"2020-07-20T17:13:58Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Jul 20, 2020 at 06:55:35PM +0200, SZEDER Gábor wrote:\n\n> On Mon, Jul 20, 2020 at 07:29:52PM +0300, Martian Chronicles wrote:\n> > Cannot configure git to use brightred, neither on Windows nor on Ubuntu. \n> > \n> > Steps to reproduce: \n> > \n> > 1. Create ~/.gitconfig with the two lines (or add to them to this file, if it exists):\n> > \n> > [color.status]\n> >         untracked = brightred\n> > \n> > 2. run `git status` from a directory with untracked files\n> > \n> > Expected: output in brightred\n> > Actual on Linux:\n> > error: invalid color value: brightred fatal: bad config variable 'color.status.untracked' in file '/home/<username>/.gitconfig' at line 2 \n> > \n> > Actual on windows:\n> >  brightred=normal=white.\n> \n> Bright colors are supported since v2.26.0.  What Git version did you\n> try?\n\nIt sounds like two different versions. :) If Git isn't complaining about\nthe color name on Windows, then it's probably sending out the correct\nANSI codes.  But whether those do anything you can see depends on your\nterminal emulator. I don't know what options there are on Windows.\n\nFor the Windows console, there's an extra stdio layer that handles these\nANSI codes. It looks like compat/mingw.c's set_attr() would need to be\nupdated, but from reading it, I'm not sure it would even support these\nextra colors. Probably \"bold red\" is the best you could do.\n\n-Peff\n"}]}