diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-02 12:44:06 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-02 12:44:06 -0800 |
commit | c06951894ac943b2aaa288b0e9dc1eb605dfb7b6 (patch) | |
tree | c84152355c7fe666d0bb16197e36eb63e33e0c13 /color.c | |
parent | Merge branch 'ac/cvsimport-revision-mapping' (diff) | |
parent | Add an optional argument for --color options (diff) | |
download | tgif-c06951894ac943b2aaa288b0e9dc1eb605dfb7b6.tar.xz |
Merge branch 'ml/color-when'
* ml/color-when:
Add an optional argument for --color options
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -138,6 +138,9 @@ int git_config_colorbool(const char *var, const char *value, int stdout_is_tty) goto auto_color; } + if (!var) + return -1; + /* Missing or explicit false to turn off colorization */ if (!git_config_bool(var, value)) return 0; |