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

Default color for commit hash in git-log is unreadable on bright background, and can't be changed.

From
FFFyn Fynn <fynfynn@gmail.com>
Date
Mar 24, 2009, 21:16 UTC
Message-ID
<1a04eebf0903241416g67e7abfdh6b3aa746f12b0e83@mail.gmail.com>
Hi folks.
I'm latest stable git (1.6.2) on a bright background terminal.

Unfortunately, the default text foreground color for the "commit <HASH>" line of git-log is 3 - yellow. And yellow writing is not very readable on bright background. Of course, I could customize color 3 at the terminal letter to be darker, but that breaks everything else that uses color 3 as a background highlight (vim, ack, etc.)

I've scoured the man pages, but haven't found any way to set the color for that line in .gitconfig.

So, I suggest that this should be considered a bug. At the very least, there should be an easy way to set that color for all us using a bright background terminal - the default Gnome Terminal, the default Terminal.app, and generally the default on many systems.

Is there any good solution for this that I missed?
Thanks,
Fynn
Next: Junio C Hamano
Message 1 of 3 in “Default color for commit hash in git-log is unreadable on bright background, and can't be changed.”
  1. Fyn FynnMar 24, 2009
  2. Junio C HamanoMar 24, 2009
  3. Fyn FynnMar 24, 2009

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.