threads / patch / 13237

patchmake git-status use a pager

Subject: [PATCH] make git-status use a pager

## tl;dr

3 messages between Apr 24, 2008 and Apr 24, 2008. Diffs are folded; open one to read it.

replies: 2people: 3as markdown or json

Bart Trojanowski· Apr 24, 2008, 00:57 UTC · lore

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>
---
 git.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to git.c +1 −1
diff --git a/git.c b/git.c
index c4e4644..89b431f 100644
--- a/git.c
+++ b/git.c
@@ -347,7 +347,7 @@ static void handle_internal_command(int argc, const char **argv)
 		{ "shortlog", cmd_shortlog, USE_PAGER },
 		{ "show-branch", cmd_show_branch, RUN_SETUP },
 		{ "show", cmd_show, RUN_SETUP | USE_PAGER },
-		{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
+		{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE | USE_PAGER },
 		{ "stripspace", cmd_stripspace },
 		{ "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
 		{ "tag", cmd_tag, RUN_SETUP },
-- 
1.5.5.1.80.g0f8afae
Johannes Schindelin· Apr 24, 2008, 08:21 UTC · re: Bart Trojanowski · lore

Re: [PATCH] make git-status use a pager

Hi,
On Wed, 23 Apr 2008, Bart Trojanowski wrote:
> make git status act similar to git log and git diff by presenting long 
> output in a pager.

Heh. The first thing I do on new machines is to compile and install Git. The second is "git config --global alias.ps '-p status'" :-)

So I obviously like your patch.

Ciao, Dscho

Matt Graham· Apr 24, 2008, 13:12 UTC · re: Johannes Schindelin · lore

Re: [PATCH] make git-status use a pager

On Thu, Apr 24, 2008 at 4:21 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 11 quoted lines
> Hi,
>
>  On Wed, 23 Apr 2008, Bart Trojanowski wrote:
>
>  > make git status act similar to git log and git diff by presenting long
>  > output in a pager.
>
>  Heh.  The first thing I do on new machines is to compile and install Git.
>  The second is "git config --global alias.ps '-p status'"  :-)
>
>  So I obviously like your patch.

Yes. This also helps those of use who didn't know you could alias status to always page and were constantly typing git status |less. Thanks!

← back to recent threads