Skip to contentSkip to conversation

Disable color detection during format-patch

PATCH In review Ryan Anderson 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Disable color detection during format-patch

---
 builtin-log.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
builtin-log.c +3 -0
index 698b71e..0aeeaa4 100644
@@ -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);
 }
 
Signature · 1 line
1.4.1.gc473b-dirty