summaryrefslogtreecommitdiffstats
path: root/pager.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-28 23:05:58 +0200
committerJunio C Hamano <gitster@pobox.com>2017-03-28 23:05:59 +0200
commit6a5ff7acb5965718cc7016c0ab6c601454fd7cde (patch)
treea10c6a5a8da9f31572435778cc16d2e383f4dafa /pager.c
parentMerge branch 'tg/stash-push-fixup' (diff)
parentpager_in_use: use git_env_bool() (diff)
downloadgit-6a5ff7acb5965718cc7016c0ab6c601454fd7cde.tar.xz
git-6a5ff7acb5965718cc7016c0ab6c601454fd7cde.zip
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);
}
/*