diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-04 12:03:05 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-04 12:04:47 +0900 |
commit | aebd23506ec952c1ca68d577afc59d3e2f7bd7ce (patch) | |
tree | 26f8c0cb722c3a993f958aa06fce7eaf76794345 /color.c | |
parent | 3c788e79b8570c9015f6077591c819862a7e39e8 (diff) | |
parent | 6be4595edb8e5b616c6e8b9fbc78b0f831fa2a87 (diff) | |
download | git-aebd23506ec952c1ca68d577afc59d3e2f7bd7ce.tar.gz |
Merge branch 'jk/ui-color-always-to-auto-maint' into jk/ui-color-always-to-autojk/ui-color-always-to-auto
* jk/ui-color-always-to-auto-maint:
color: make "always" the same as "auto" in config
provide --color option for all ref-filter users
t3205: use --color instead of color.branch=always
t3203: drop "always" color test
t6006: drop "always" color config tests
t7502: use diff.noprefix for --verbose test
t7508: use test_terminal for color output
t3701: use test-terminal to collect color output
t4015: prefer --color to -c color.diff=always
test-terminal: set TERM=vt100
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -308,7 +308,7 @@ int git_config_colorbool(const char *var, const char *value) if (!strcasecmp(value, "never")) return 0; if (!strcasecmp(value, "always")) - return 1; + return var ? GIT_COLOR_AUTO : 1; if (!strcasecmp(value, "auto")) return GIT_COLOR_AUTO; } |