# Git log.decorate can't be overridden in global config (v2.13.0)

3 messages from 2017-05-19 to 2017-05-20. Participants: Caleb Evans, Todd Zullinger, Junio C Hamano.
Thread: https://gitlist.dev/t/46005

## Caleb Evans, 2017-05-19 23:43

Subject: Git log.decorate can't be overridden in global config (v2.13.0)
Message-ID: <15c2318a2c4.1100a44f3621653.6175207833450352995@calebevans.me>
URL: https://gitlist.dev/e/15c2318a2c4.1100a44f3621653.6175207833450352995%40calebevans.me

```
Hi,

I recently updated to Git v2.13.0 (macOS Sierra via Homebrew), and I noticed that the default --decorate option for `git log` has changed from --decorate=no to --decorate=auto. I'd prefer to keep decoration disabled to minimize clutter in the logs, so I try disabling it in my global .gitconfig (~/.gitconfig) like so:

git config --global log.decorate none

However, this does not seem to disable the log decorations. Running `git log` again still shows the decorations. Strangely, running `git config log.decorate none` does seem to disable decoration, but I would prefer not to do this on a per-repository basis. I can only suspect that this is a Git bug, as my log.decorate global config setting is not being honored. I have already confirmed that my repository's .git/config is not overriding my global preference.

I hope this should be a simple issue, but please let me know if you have questions.

Thanks,
Caleb Evans




```

## Todd Zullinger, 2017-05-20 01:29

Subject: Re: Git log.decorate can't be overridden in global config (v2.13.0)
Message-ID: <20170520012950.GC25542@zaya.teonanacatl.net>
URL: https://gitlist.dev/e/20170520012950.GC25542%40zaya.teonanacatl.net
In-Reply-To: <15c2318a2c4.1100a44f3621653.6175207833450352995@calebevans.me>

```
Hi Caleb,

Caleb Evans wrote:
> I recently updated to Git v2.13.0 (macOS Sierra via Homebrew), and I 
> noticed that the default --decorate option for `git log` has changed 
> from --decorate=no to --decorate=auto. I'd prefer to keep decoration 
> disabled to minimize clutter in the logs, so I try disabling it in 
> my global .gitconfig (~/.gitconfig) like so:
>
> git config --global log.decorate none
>
> However, this does not seem to disable the log decorations. Running 
> `git log` again still shows the decorations. Strangely, running `git 
> config log.decorate none` does seem to disable decoration, but I 
> would prefer not to do this on a per-repository basis. I can only 
> suspect that this is a Git bug, as my log.decorate global config 
> setting is not being honored. I have already confirmed that my 
> repository's .git/config is not overriding my global preference.
>
> I hope this should be a simple issue, but please let me know if you 
> have questions.

I believe a patch for this is on the ah/log-decorate-default-to-auto 
branch, courtesy of Brian Carlson (Cc:d):

    https://github.com/gitster/git/commit/c74271aae7

The relevant list thread is here:

    https://public-inbox.org/git/20170512213407.46251-1-sandals@crustytoothpaste.net/

Cheers,

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ambition is a poor excuse for not having enough sense to be lazy.


```

## Junio C Hamano, 2017-05-20 02:11

Subject: Re: Git log.decorate can't be overridden in global config (v2.13.0)
Message-ID: <xmqqo9uotgyo.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqo9uotgyo.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <20170520012950.GC25542@zaya.teonanacatl.net>

```
Todd Zullinger <tmz@pobox.com> writes:

> I believe a patch for this is on the ah/log-decorate-default-to-auto
> branch, courtesy of Brian Carlson (Cc:d):
>
>    https://github.com/gitster/git/commit/c74271aae7
>
> The relevant list thread is here:
>
>    https://public-inbox.org/git/20170512213407.46251-1-sandals@crustytoothpaste.net/
>
> Cheers,

Thanks.  

We should merge this (and other regression fixes, if any) and tag
2.13.1 during the next two weeks.



```
