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

Coloring

From
IRIrving Rabin <irving@edmodo.com>
Date
May 31, 2017, 18:33 UTC
Message-ID
<CAD1ypiWOcKaLJJzZC=gw75EDFnw_1ZqC94B5p9i722T-sijN1Q@mail.gmail.com>

Folks, I am reporting an issue with coloring of the output of Git commands, like status, diff, etc.

Specifically, if the field is supposed to be white, it doesn't mean it should be literally 0xFFFFFF. It should be the color that I have configured as White color for my console emulator.

I like light-screen terminals, and I configure my ANSI colors in the way that they are clearly visible on the background and clearly distinct between themselves. In my terminal settings background is light-yellow, Black is black, Yellow is brown, Red is dark red, Magenta is purple and White is dark gray. I set it once and I can use it everywhere - all Unix commands work correctly, I can edit highlighted source code in Vim, and all my color settings are respected.

However Git behaves differently. When I run git diff, some of the output is literally white on light yellow background. It is like "we know what is White, so we ignore your settings". And it is quite irritating.

Is there a way to make Git respect terminal settings and not to override them with absolute colors? If so, please advise. If not, then I guess it is a bug to fix, right?

Thanks, Irving Rabin Software Developer @Edmodo 408-242-1299

Next: Samuel Lijin
Message 1 of 5 in “Coloring”
  1. Irving RabinMay 31, 2017
  2. Samuel LijinMay 31, 2017
  3. Jeff KingMay 31, 2017
  4. Irving RabinMay 31, 2017
  5. Samuel LijinMay 31, 2017

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.