Skip to content

Commit d5ca1ab

Browse files
committed
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
2 parents 18fe500 + ed01661 commit d5ca1ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const char *git_pager(int stdout_is_tty)
5454
pager = getenv("PAGER");
5555
if (!pager)
5656
pager = DEFAULT_PAGER;
57-
else if (!*pager || !strcmp(pager, "cat"))
57+
if (!*pager || !strcmp(pager, "cat"))
5858
pager = NULL;
5959

6060
return pager;

0 commit comments

Comments
 (0)