Browse Source

Merge branch 'jk/pager-in-use'

Code clean-up.

* jk/pager-in-use:
  pager_in_use: use git_env_bool()
maint
Junio C Hamano 8 years ago
parent
commit
6a5ff7acb5
  1. 4
      pager.c

4
pager.c

@ -135,9 +135,7 @@ void setup_pager(void) @@ -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);
}

/*

Loading…
Cancel
Save