git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
May 16, 2013, 13:04 UTC
Message-ID
<1368709468-18610-1-git-send-email-artagnon@gmail.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
Next: Matthieu Moy
Message 1 of 3 in “color: set color.ui to auto by default”
  1. color: set color.ui to auto by defaultRamkumar Ramachandra, May 16, 2013
  2. Matthieu MoyMay 16, 2013
  3. Ramkumar RamachandraMay 16, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.