threads / patch / 33840

patchcolor: set color.ui to auto by default

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

## tl;dr

3 messages between May 16, 2013 and May 16, 2013. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Ramkumar Ramachandra· May 16, 2013, 13:04 UTC · lore

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(-)
Show changes to color.c +1 −1
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· May 16, 2013, 13:25 UTC · re: Ramkumar Ramachandra · lore

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

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/

← back to recent threads