summaryrefslogtreecommitdiff
path: root/pager.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-28 14:05:58 -0700
committerJunio C Hamano <gitster@pobox.com>2017-03-28 14:05:59 -0700
commit6a5ff7acb5965718cc7016c0ab6c601454fd7cde (patch)
treea10c6a5a8da9f31572435778cc16d2e383f4dafa /pager.c
parenta612436f1479b0f7db9a80f9ba34037ab52bfc12 (diff)
parentdf2a6e38b7e192c32d1df4b10cc278c2a66fb6a0 (diff)
downloadgit-6a5ff7acb5965718cc7016c0ab6c601454fd7cde.tar.gz
Merge branch 'jk/pager-in-use'
Code clean-up. * jk/pager-in-use: pager_in_use: use git_env_bool()
Diffstat (limited to 'pager.c')
-rw-r--r--pager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pager.c b/pager.c
index 73ca8bc3b1..c113d898a4 100644
--- a/pager.c
+++ b/pager.c
@@ -135,9 +135,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);
}
/*