git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Please, paint new branch errors in RED (or any visible color)

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 12, 2021, 19:01 UTC
Message-ID
<211212.86o85labj1.gmgdl@evledraar.gmail.com>
In-Reply-To
<xmqq4k7dlld3.fsf@gitster.g>
On Sun, Dec 12 2021, Junio C Hamano wrote:
Show 11 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>> On Fri, Dec 10 2021, Jose Wielandt wrote:
>>
>>> Yes, I git switch has the same behavior.
>>> I also agree that add hints could be a good idea.
>>
>> I'll pick up this topic.
>
> Please make sure color challenged users can configure it away or
> customize it somehow.

Yes, I think it's a bug if we add any such coloring that isn't configurable via the usual color.* configuration. Although in this case it's usage.c. So perhaps "color.usage" (as in usage.c). But that squats on any future hypothetical "git usage". So maybe "color.coreUsage" (a "color.core.usage" would squat on any future "color.core.usage.<slot>" (i.e. there's no 4-level keys)>

> Making it opt-in is even better, but it is my personal taste.

*nod*. I'll see how it turns out. FWIW I think that it's probably too over-colored to do:

    <RED>fatal: the message</RED>
And it's probably better to just do:
    <RED>fatal</RED>: the message

But I'll see once we have actual examples. The advice output is fully-colored now. I.e. "hint: message", not just the "hint" part...

Previous: Junio C HamanoNext: Eric Sunshine
Message 7 of 8 in “Please, paint new branch errors in RED (or any visible color)”
  1. Jose WielandtDec 10, 2021
  2. Ævar Arnfjörð BjarmasonDec 10, 2021
  3. Fabian StelzerDec 10, 2021
  4. Jose WielandtDec 10, 2021
  5. Ævar Arnfjörð BjarmasonDec 11, 2021
  6. Junio C HamanoDec 12, 2021
  7. Ævar Arnfjörð BjarmasonDec 12, 2021
  8. Eric SunshineDec 12, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.