author | Jeff King <peff@peff.net> | |
Thu, 18 Aug 2011 05:03:48 +0000 (22:03 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 18 Aug 2011 21:48:29 +0000 (14:48 -0700) | ||
commit | e269eb7946d0a4ba6a4e175133b5479446ac04a5 | |
tree | 65da98cebb4776458fa7944ba7101c2f4149f1f7 | tree | snapshot |
parent | f1c9626105d5e4962a5ccaa4620114d03f32ad02 | commit | diff |
git_config_colorbool: refactor stdout_is_tty handling
Usually this function figures out for itself whether stdout
is a tty. However, it has an extra parameter just to allow
git-config to override the auto-detection for its
--get-colorbool option.
Instead of an extra parameter, let's just use a global
variable. This makes calling easier in the common case, and
will make refactoring the colorbool code much simpler.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Usually this function figures out for itself whether stdout
is a tty. However, it has an extra parameter just to allow
git-config to override the auto-detection for its
--get-colorbool option.
Instead of an extra parameter, let's just use a global
variable. This makes calling easier in the common case, and
will make refactoring the colorbool code much simpler.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c | diff | blob | history | |
builtin/commit.c | diff | blob | history | |
builtin/config.c | diff | blob | history | |
builtin/grep.c | diff | blob | history | |
builtin/show-branch.c | diff | blob | history | |
color.c | diff | blob | history | |
color.h | diff | blob | history | |
diff.c | diff | blob | history | |
parse-options.c | diff | blob | history |