# [PATCH 1/1] Disable color detection during format-patch

2 messages from 2006-07-09 to 2006-07-09. Participants: Ryan Anderson, Junio C Hamano.
Thread: https://gitlist.dev/t/4813

## Ryan Anderson, 2006-07-09 06:28

Subject: [PATCH 1/1] Disable color detection during format-patch
Message-ID: <11524265013620-git-send-email-ryan@michonline.com>
URL: https://gitlist.dev/e/11524265013620-git-send-email-ryan%40michonline.com

```
Signed-off-by: Ryan Anderson <ryan@michonline.com>
---
 builtin-log.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/builtin-log.c b/builtin-log.c
index 698b71e..0aeeaa4 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -105,6 +105,9 @@ static int git_format_config(const char 
 		strcat(extra_headers, value);
 		return 0;
 	}
+	if (!strcmp(var, "diff.color")) {
+		return 0;
+	}
 	return git_diff_config(var, value);
 }
 
-- 
1.4.1.gc473b-dirty

```

## Junio C Hamano, 2006-07-09 06:59

Subject: Re: [PATCH 1/1] Disable color detection during format-patch
Message-ID: <7v8xn3p8kb.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v8xn3p8kb.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <11524265013620-git-send-email-ryan@michonline.com>

```
Obviously correct -- thanks.

```
