Skip to content

Commit c0459ca

Browse files
Jörn Engelgitster
authored andcommitted
pager: do allow spawning pager recursively
This reverts commit 88e8f90, which tried to allow GIT_PAGER="git -p column --mode='dense color'" git -p branch and still wanted to avoid "git -p column" to invoke itself. However, this falls into "don't do that -p then" category. In particular, inside "git log", with results going through less, a potentially interesting commit may be found and from there inside "less", the user may want to execute "git show <commit>". Before the commit being reverted, this used to show the patch in less but it no longer does. Signed-off-by: Jörn Engel <[email protected]> Reviewed-by: Jeff King <[email protected]> Reviewed-by: Matthieu Moy <[email protected]> Acked-by: Duy Nguyen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0bc85ab commit c0459ca

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
@@ -64,7 +64,7 @@ void setup_pager(void)
6464
{
6565
const char *pager = git_pager(isatty(1));
6666

67-
if (!pager || pager_in_use())
67+
if (!pager)
6868
return;
6969

7070
/*

0 commit comments

Comments
 (0)