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

3 messages from 2009-03-24 to 2009-03-24. Participants: Fyn Fynn, Junio C Hamano.
Thread: https://gitlist.dev/t/18513

## Fyn Fynn, 2009-03-24 21:16

Subject: Default color for commit hash in git-log is unreadable on bright background, and can't be changed.
Message-ID: <1a04eebf0903241416g67e7abfdh6b3aa746f12b0e83@mail.gmail.com>
URL: https://gitlist.dev/e/1a04eebf0903241416g67e7abfdh6b3aa746f12b0e83%40mail.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

```

## Junio C Hamano, 2009-03-24 21:48

Subject: Re: Default color for commit hash in git-log is unreadable on bright background, and can't be changed.
Message-ID: <7vmybavbg9.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vmybavbg9.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <1a04eebf0903241416g67e7abfdh6b3aa746f12b0e83@mail.gmail.com>

```
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, 2009-03-24 22:07

Subject: Re: Default color for commit hash in git-log is unreadable on bright background, and can't be changed.
Message-ID: <1a04eebf0903241507i46d8eda0o1b75702073a88c96@mail.gmail.com>
URL: https://gitlist.dev/e/1a04eebf0903241507i46d8eda0o1b75702073a88c96%40mail.gmail.com
In-Reply-To: <7vmybavbg9.fsf@gitster.siamese.dyndns.org>

```
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:
> 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
>
>
>
>

```
