diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-20 16:13:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-20 16:13:56 -0800 |
commit | b23b27eb5dc950081d4f76ae84f10168c4d149bd (patch) | |
tree | 6e29309bd8f2ae4b200214a0d2257aa1bc909515 /diff.c | |
parent | 6fe870f032e4a247cdcf2949bb24d103873ff597 (diff) | |
parent | 6b2f2d9805dd22c6f74957e0d76a1d2921b40c16 (diff) | |
download | git-b23b27eb5dc950081d4f76ae84f10168c4d149bd.tar.gz |
Merge branch 'mk/color'
* mk/color:
Add color.ui variable which globally enables colorization if set
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,7 +20,7 @@ static int diff_detect_rename_default; static int diff_rename_limit_default = 100; -static int diff_use_color_default; +int diff_use_color_default = -1; static const char *external_diff_cmd_cfg; int diff_auto_refresh_index = 1; @@ -191,7 +191,7 @@ int git_diff_basic_config(const char *var, const char *value) } } - return git_default_config(var, value); + return git_color_default_config(var, value); } static char *quote_two(const char *one, const char *two) @@ -2055,7 +2055,7 @@ void diff_setup(struct diff_options *options) options->change = diff_change; options->add_remove = diff_addremove; - if (diff_use_color_default) + if (diff_use_color_default > 0) DIFF_OPT_SET(options, COLOR_DIFF); else DIFF_OPT_CLR(options, COLOR_DIFF); |