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
Eric Sunshine <sunshine@sunshineco.com>
Date
Dec 12, 2021, 22:27 UTC
Message-ID
<CAPig+cT-9GAtadPW-=3sVFVWyKTf9Kybs3TwSW-s0BzhsfGJyQ@mail.gmail.com>
In-Reply-To
<211212.86o85labj1.gmgdl@evledraar.gmail.com>

On Sun, Dec 12, 2021 at 4:22 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 20 quoted lines
> 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...

As a minor bikeshedding datapoint, a script I wrote a few years ago highlights outdated entries in a larger output. The highlighting is applied only to a single word ("outdated") on one line related to the item, and I found that my eye would regularly glide right over the highlighting in the somewhat voluminous output without ever seeing the highlight. Very recently, I changed it to highlight the entire line, and that has helped me take more notice of it (though, admittedly, I still sometimes still overlook the highlighted item).

Previous: Ævar Arnfjörð Bjarmason
Message 8 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.