shortlog: use pager
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 27 Nov 2006 23:29:21 +0000 (00:29 +0100)
committerJunio C Hamano <junkio@cox.net>
Tue, 28 Nov 2006 00:55:42 +0000 (16:55 -0800)
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c

diff --git a/git.c b/git.c
index f97de602d25c33fab8a7bef90a3c32e3dd8422bf..357330e02cf4c5645a8e37b0ae8fe8c5596990f3 100644 (file)
--- a/git.c
+++ b/git.c
@@ -260,7 +260,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 },