git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] shortlog: use pager

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 27, 2006, 23:29 UTC
Message-ID
<Pine.LNX.4.63.0611280027320.30004@wbgn013.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
Message 1 of 1 in “shortlog: use pager”
  1. shortlog: use pagerJohannes Schindelin, Nov 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.