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

[PATCH] Remove USE_PAGER from git-pickaxe and git-annotate

From
Andrew Ruder <andy@aeruder.net>
Date
Jul 4, 2007, 22:21 UTC
Message-ID
<20070704222148.GB13317@bowser.ruder>

git-blame (and friends) specifically leave the pager turned off in the case that --incremental is specified as this isn't for human consumption. git-pickaxe and git-annotate will turn it on themselves otherwise.

Signed-off-by: Andrew Ruder <andy@aeruder.net>
---
 git.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/git.c b/git.c
index 727aabc..a647f9c 100644
--- a/git.c
+++ b/git.c
@@ -303,7 +303,7 @@ static void handle_internal_command(int argc, const char **argv)
 	const char *cmd = argv[0];
 	static struct cmd_struct commands[] = {
 		{ "add", cmd_add, RUN_SETUP | NEED_WORK_TREE },
-		{ "annotate", cmd_annotate, RUN_SETUP | USE_PAGER },
+		{ "annotate", cmd_annotate, RUN_SETUP },
 		{ "apply", cmd_apply },
 		{ "archive", cmd_archive },
 		{ "blame", cmd_blame, RUN_SETUP },
@@ -345,7 +345,7 @@ static void handle_internal_command(int argc, const char **argv)
 		{ "mv", cmd_mv, RUN_SETUP | NEED_WORK_TREE },
 		{ "name-rev", cmd_name_rev, RUN_SETUP },
 		{ "pack-objects", cmd_pack_objects, RUN_SETUP },
-		{ "pickaxe", cmd_blame, RUN_SETUP | USE_PAGER },
+		{ "pickaxe", cmd_blame, RUN_SETUP },
 		{ "prune", cmd_prune, RUN_SETUP },
 		{ "prune-packed", cmd_prune_packed, RUN_SETUP },
 		{ "push", cmd_push, RUN_SETUP },
-- 
1.5.3.rc0.13.gc37c
Message 1 of 1 in “Remove USE_PAGER from git-pickaxe and git-annotate”
  1. Remove USE_PAGER from git-pickaxe and git-annotateAndrew Ruder, Jul 4, 2007

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.