threads / patch / 4813

patchDisable color detection during format-patch

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

## tl;dr

2 messages between Jul 9, 2006 and Jul 9, 2006. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Ryan Anderson· Jul 9, 2006, 06:28 UTC · lore
Signed-off-by: Ryan Anderson <ryan@michonline.com>
---
 builtin-log.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Show changes to builtin-log.c +3 −0
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

← back to recent threads