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:
2
pager.c
2
pager.c
@ -54,7 +54,7 @@ const char *git_pager(int stdout_is_tty)
|
|||||||
pager = getenv("PAGER");
|
pager = getenv("PAGER");
|
||||||
if (!pager)
|
if (!pager)
|
||||||
pager = DEFAULT_PAGER;
|
pager = DEFAULT_PAGER;
|
||||||
else if (!*pager || !strcmp(pager, "cat"))
|
if (!*pager || !strcmp(pager, "cat"))
|
||||||
pager = NULL;
|
pager = NULL;
|
||||||
|
|
||||||
return pager;
|
return pager;
|
||||||
|
Reference in New Issue
Block a user