diff options
author | Jeff King <peff@peff.net> | 2015-05-27 09:22:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-27 22:54:37 +0200 |
commit | 74b15bfbf6f7efffa40fda170b3a3cb0218d8651 (patch) | |
tree | c16ad79e5098f609e7c61301ca995fdbe3ebdc32 /diff.c | |
parent | Git 2.2.2 (diff) | |
download | git-74b15bfbf6f7efffa40fda170b3a3cb0218d8651.tar.xz git-74b15bfbf6f7efffa40fda170b3a3cb0218d8651.zip |
diff: accept color.diff.context as a synonym for "plain"
The term "plain" is a bit ambiguous; let's allow the more
specific "context", but keep "plain" around for
compatibility.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ static char diff_colors[][COLOR_MAXLEN] = { static int parse_diff_color_slot(const char *var) { - if (!strcasecmp(var, "plain")) + if (!strcasecmp(var, "context") || !strcasecmp(var, "plain")) return DIFF_PLAIN; if (!strcasecmp(var, "meta")) return DIFF_METAINFO; |