diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-28 14:05:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-28 14:05:59 -0700 |
commit | 6a5ff7acb5965718cc7016c0ab6c601454fd7cde (patch) | |
tree | a10c6a5a8da9f31572435778cc16d2e383f4dafa /pager.c | |
parent | a612436f1479b0f7db9a80f9ba34037ab52bfc12 (diff) | |
parent | df2a6e38b7e192c32d1df4b10cc278c2a66fb6a0 (diff) | |
download | git-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.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); } /* |