From: "Øystein Walle" <oystwa@gmail.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, "Øystein Walle" <oystwa@gmail.com>
Subject: [PATCH v2] show-branch: use pager
Date: Thu, 13 Jun 2013 09:57:18 +0200 [thread overview]
Message-ID: <1371110238-6910-1-git-send-email-oystwa@gmail.com> (raw)
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
next prev parent reply other threads:[~2013-06-13 7:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 6:43 [PATCH RFC] show-branch: use pager Øystein Walle
2013-06-13 7:01 ` Jeff King
2013-06-13 7:57 ` Øystein Walle [this message]
2013-06-13 9:32 ` [PATCH v2] " Matthieu Moy
2013-06-13 17:33 ` [PATCH RFC] " Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1371110238-6910-1-git-send-email-oystwa@gmail.com \
--to=oystwa@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).