# [PATCH] shortlog: use pager

1 messages from 2006-11-27 to 2006-11-27. Participants: Johannes Schindelin.
Thread: https://gitlist.dev/t/43778

## Johannes Schindelin, 2006-11-27 23:29

Subject: [PATCH] shortlog: use pager
Message-ID: <Pine.LNX.4.63.0611280027320.30004@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0611280027320.30004%40wbgn013.biozentrum.uni-wuerzburg.de

```

On request of the kingpenguin, shortlog now uses the pager if output
goes to a tty.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 git.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git.c b/git.c
index 9bcb17c..63a4747 100644
--- a/git.c
+++ b/git.c
@@ -265,7 +265,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
 		{ "rev-parse", cmd_rev_parse, RUN_SETUP },
 		{ "rm", cmd_rm, RUN_SETUP },
 		{ "runstatus", cmd_runstatus, RUN_SETUP },
-		{ "shortlog", cmd_shortlog, RUN_SETUP },
+		{ "shortlog", cmd_shortlog, RUN_SETUP | USE_PAGER },
 		{ "show-branch", cmd_show_branch, RUN_SETUP },
 		{ "show", cmd_show, RUN_SETUP | USE_PAGER },
 		{ "stripspace", cmd_stripspace },
-- 
1.4.4.1.ga3a78-dirty

```
