Skip to content

Commit c8af1de

Browse files
bartmangitster
authored andcommitted
make git-status use a pager
make git status act similar to git log and git diff by presenting long output in a pager. Signed-off-by: Bart Trojanowski <bart@jukie.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 68951af commit c8af1de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static void handle_internal_command(int argc, const char **argv)
347347
{ "shortlog", cmd_shortlog, USE_PAGER },
348348
{ "show-branch", cmd_show_branch, RUN_SETUP },
349349
{ "show", cmd_show, RUN_SETUP | USE_PAGER },
350-
{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
350+
{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE | USE_PAGER },
351351
{ "stripspace", cmd_stripspace },
352352
{ "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
353353
{ "tag", cmd_tag, RUN_SETUP },

0 commit comments

Comments
 (0)