aboutsummaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2009-01-08 19:53:05 +0100
committerJunio C Hamano <gitster@pobox.com>2009-01-08 17:32:19 -0800
commit38920dd6d377a82f4c8c51c3451271d6a93c92a8 (patch)
treeb74eddf822f4d4769c8b5ddb2986bd0bb96ef188 /builtin-commit.c
parent3f4b609f5f3146a34eb72e82ab55714328e0bd1a (diff)
downloadgit-38920dd6d377a82f4c8c51c3451271d6a93c92a8.tar.gz
git-38920dd6d377a82f4c8c51c3451271d6a93c92a8.tar.xz
git-status -v: color diff output when color.ui is set
When using "git status -v", the diff output wasn't colored, even though color.ui was set. Only when setting color.diff it worked. Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 2d90f7430..7cf227a1b 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -866,6 +866,9 @@ int cmd_status(int argc, const char **argv, const char *prefix)
if (wt_status_use_color == -1)
wt_status_use_color = git_use_color_default;
+ if (diff_use_color_default == -1)
+ diff_use_color_default = git_use_color_default;
+
argc = parse_and_validate_options(argc, argv, builtin_status_usage, prefix);
index_file = prepare_index(argc, argv, prefix);