diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-28 23:05:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-28 23:05:59 +0200 |
commit | 6a5ff7acb5965718cc7016c0ab6c601454fd7cde (patch) | |
tree | a10c6a5a8da9f31572435778cc16d2e383f4dafa /pager.c | |
parent | Merge branch 'tg/stash-push-fixup' (diff) | |
parent | pager_in_use: use git_env_bool() (diff) | |
download | git-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } /* |