[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