@matheusbsbs / matheus-bagliano / commits / 1d541c120b
Fork 0

shortlog: use pager

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>

Johannes Schindelin committed Nov 28, 2006 at 00:29 UTC 1d541c120b4de5c70e73f8a20e1d961324cc55fe
1 file changed +1 -1
git.c
+1 -1
@@ -260,7 +260,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
260 { "rev-parse", cmd_rev_parse, RUN_SETUP },
261 { "rm", cmd_rm, RUN_SETUP },
262 { "runstatus", cmd_runstatus, RUN_SETUP },
263 - { "shortlog", cmd_shortlog, RUN_SETUP },
263 + { "shortlog", cmd_shortlog, RUN_SETUP | USE_PAGER },
264 { "show-branch", cmd_show_branch, RUN_SETUP },
265 { "show", cmd_show, RUN_SETUP | USE_PAGER },
266 { "stripspace", cmd_stripspace },