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

[PATCH v2] show-branch: use pager

From
Øystein Walle <oystwa@gmail.com>
Date
Jun 13, 2013, 07:57 UTC
Message-ID
<1371110238-6910-1-git-send-email-oystwa@gmail.com>
In-Reply-To
<20130613070118.GA23235@sigill.intra.peff.net>
This is for consistency with other porcelain commands such as 'log'.
Signed-off-by: Øystein Walle <oystwa@gmail.com>
---
Hi, Jeff
Thanks for the (fast!) feedback and good to hear it won't cause any trouble.

I hadn't actually noticed this mechanism of setting up the pager before now but I fully agree. Here's an updated version.

Øsse
 git.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git.c b/git.c
index 4359086..6d1f6ca 100644
--- a/git.c
+++ b/git.c
@@ -406,7 +406,7 @@ static void handle_internal_command(int argc, const char **argv)
 		{ "send-pack", cmd_send_pack, RUN_SETUP },
 		{ "shortlog", cmd_shortlog, RUN_SETUP_GENTLY | USE_PAGER },
 		{ "show", cmd_show, RUN_SETUP },
-		{ "show-branch", cmd_show_branch, RUN_SETUP },
+		{ "show-branch", cmd_show_branch, RUN_SETUP | USE_PAGER },
 		{ "show-ref", cmd_show_ref, RUN_SETUP },
 		{ "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
 		{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
-- 
1.8.2.2
Previous: Jeff KingNext: Matthieu Moy
Message 3 of 5 in “show-branch: use pager”
  1. show-branch: use pagerØystein Walle, Jun 13, 2013
  2. Jeff KingJun 13, 2013
  3. show-branch: use pagerØystein Walle, Jun 13, 2013
  4. Matthieu MoyJun 13, 2013
  5. Junio C HamanoJun 13, 2013

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.