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>
Markus Heidelberg committed
Jan 8, 2009 at 19:53 UTC
38920dd6d377a82f4c8c51c3451271d6a93c92a8
1 file changed
+3
builtin-commit.c
+3
@@ -866,6 +866,9 @@ int cmd_status(int argc, const char **argv, const char *prefix)
866
if (wt_status_use_color == -1)
867
wt_status_use_color = git_use_color_default;
868
869
+ if (diff_use_color_default == -1)
870
+ diff_use_color_default = git_use_color_default;
871
+
872
argc = parse_and_validate_options(argc, argv, builtin_status_usage, prefix);
873
874
index_file = prepare_index(argc, argv, prefix);