threads / discuss / 18513

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

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

## tl;dr

3 messages between Mar 24, 2009 and Mar 24, 2009.

replies: 2people: 2as markdown or json

Fyn Fynn· Mar 24, 2009, 21:16 UTC · lore
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
Junio C Hamano· Mar 24, 2009, 21:48 UTC · re: Fyn Fynn · lore

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

Fyn Fynn <fynfynn@gmail.com> writes:
> Unfortunately, the default text foreground color for the "commit
> <HASH>" line of git-log is 3 - yellow.
> ...
> Is there any good solution for this that I missed?
Perhaps...
$ git config color.diff.commmit cyan
Fyn Fynn· Mar 24, 2009, 22:07 UTC · re: Junio C Hamano · lore

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

Thanks a lot, Junio. That's exactly what I needed.

Seeing that you can customize the color so easily, this whole thing is a non-issue.

Cheers and thanks for making git awesome,
Fynn
On Tue, Mar 24, 2009 at 2:48 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
> Fyn Fynn <fynfynn@gmail.com> writes:
>
>> Unfortunately, the default text foreground color for the "commit
>> <HASH>" line of git-log is 3 - yellow.
>> ...
>> Is there any good solution for this that I missed?
>
> Perhaps...
>
> $ git config color.diff.commmit cyan
>
>
>
>

← back to recent threads