summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-05 23:41:57 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-05 23:41:57 -0800
commit946a5aee3e896aa12cb9d4d21079c6e299baad81 (patch)
tree86bc33d1262dfec0a36bbca5b0825298189bb710 /commit.h
parentd2638e1561012e0f5b473ab43ef76c4ff0d12a9f (diff)
parent30825178fb72e3664bd1bda7c02c62e300e2e5ce (diff)
downloadgit-946a5aee3e896aa12cb9d4d21079c6e299baad81.tar.gz
Merge branch 'jc/format-color-auto'
Introduce "log --format=%C(auto,blue)Foo%C(auto,reset)" that does not color its output when writing to a non-terminal. * jc/format-color-auto: log --format: teach %C(auto,black) to respect color config t6006: clean up whitespace
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index b6ad8f3f30..0f469e507d 100644
--- a/commit.h
+++ b/commit.h
@@ -89,6 +89,7 @@ struct pretty_print_context {
char *notes_message;
struct reflog_walk_info *reflog_info;
const char *output_encoding;
+ int color;
};
struct userformat_want {