# [PATCH] color: set color.ui to auto by default

3 messages from 2013-05-16 to 2013-05-16. Participants: Ramkumar Ramachandra, Matthieu Moy.
Thread: https://gitlist.dev/t/33840

## Ramkumar Ramachandra, 2013-05-16 13:04

Subject: [PATCH] color: set color.ui to auto by default
Message-ID: <1368709468-18610-1-git-send-email-artagnon@gmail.com>
URL: https://gitlist.dev/e/1368709468-18610-1-git-send-email-artagnon%40gmail.com

```
This is a good default.  Users who don't want color can look for "color"
in the git-config(1), and turn it off.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 color.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/color.c b/color.c
index e8e2681..f672885 100644
--- a/color.c
+++ b/color.c
@@ -1,7 +1,7 @@
 #include "cache.h"
 #include "color.h"
 
-static int git_use_color_default = 0;
+static int git_use_color_default = GIT_COLOR_AUTO;
 int color_stdout_is_tty = -1;
 
 /*
-- 
1.8.3.rc2.10.g0c2b1cf.dirty

```

## Matthieu Moy, 2013-05-16 13:25

Subject: Re: [PATCH] color: set color.ui to auto by default
Message-ID: <vpqfvxn12gv.fsf@grenoble-inp.fr>
URL: https://gitlist.dev/e/vpqfvxn12gv.fsf%40grenoble-inp.fr
In-Reply-To: <1368709468-18610-1-git-send-email-artagnon@gmail.com>

```
Ramkumar Ramachandra <artagnon@gmail.com> writes:

> This is a good default.  Users who don't want color can look for "color"
> in the git-config(1), and turn it off.

Err, you're comming a bit late ;-). See my patch, posted yesterday, for
the same topic.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

```

## Ramkumar Ramachandra, 2013-05-16 13:37

Subject: Re: [PATCH] color: set color.ui to auto by default
Message-ID: <CALkWK0msyYGo0NSkwvGJA7uy4tNvE+gZmaZ_Qguwm_aq60NpXg@mail.gmail.com>
URL: https://gitlist.dev/e/CALkWK0msyYGo0NSkwvGJA7uy4tNvE%2BgZmaZ_Qguwm_aq60NpXg%40mail.gmail.com
In-Reply-To: <vpqfvxn12gv.fsf@grenoble-inp.fr>

```
Matthieu Moy wrote:
> Err, you're comming a bit late ;-). See my patch, posted yesterday, for
> the same topic.

Ah, too much email :|

Your patch looks good.

```
