diff options
author | Jeff King <peff@peff.net> | 2017-03-24 14:59:12 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-24 12:14:11 -0700 |
commit | df2a6e38b7e192c32d1df4b10cc278c2a66fb6a0 (patch) | |
tree | 358e630d79099d5f75bb611430c2d45ea2ad387e /pager.c | |
parent | Prepare for 2.12.2 (diff) | |
download | tgif-df2a6e38b7e192c32d1df4b10cc278c2a66fb6a0.tar.xz |
pager_in_use: use git_env_bool()
The pager_in_use() function predates git_env_bool(), but
ends up doing the same thing. Let's make use of the latter,
which is shorter and less repetitive.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pager.c')
-rw-r--r-- | pager.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -166,9 +166,7 @@ void setup_pager(void) int pager_in_use(void) { - const char *env; - env = getenv("GIT_PAGER_IN_USE"); - return env ? git_config_bool("GIT_PAGER_IN_USE", env) : 0; + return git_env_bool("GIT_PAGER_IN_USE", 0); } /* |