1
0
mirror of https://github.com/git/git.git synced 2025-04-20 21:57:21 +00:00

Merge branch 'jk/pager-bypass-cat-for-default-pager'

If a build-time fallback is set to "cat" instead of "less", we
should apply the same "no subprocess or pipe" optimization as we
apply to user-supplied GIT_PAGER=cat.

* jk/pager-bypass-cat-for-default-pager:
  pager: turn on "cat" optimization for DEFAULT_PAGER
This commit is contained in:
Junio C Hamano 2013-09-18 11:42:15 -07:00
commit d5ca1ab395

View File

@ -54,7 +54,7 @@ const char *git_pager(int stdout_is_tty)
pager = getenv("PAGER");
if (!pager)
pager = DEFAULT_PAGER;
else if (!*pager || !strcmp(pager, "cat"))
if (!*pager || !strcmp(pager, "cat"))
pager = NULL;
return pager;