# [PATCH] make git-status use a pager

3 messages from 2008-04-24 to 2008-04-24. Participants: Bart Trojanowski, Johannes Schindelin, Matt Graham.
Thread: https://gitlist.dev/t/13237

## Bart Trojanowski, 2008-04-24 00:57

Subject: [PATCH] make git-status use a pager
Message-ID: <1208998668-28770-1-git-send-email-bart@jukie.net>
URL: https://gitlist.dev/e/1208998668-28770-1-git-send-email-bart%40jukie.net

```
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(-)

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, 2008-04-24 08:21

Subject: Re: [PATCH] make git-status use a pager
Message-ID: <alpine.DEB.1.00.0804240920170.26553@eeepc-johanness>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0804240920170.26553%40eeepc-johanness
In-Reply-To: <1208998668-28770-1-git-send-email-bart@jukie.net>

```
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, 2008-04-24 13:12

Subject: Re: [PATCH] make git-status use a pager
Message-ID: <1c5969370804240612i1dbd2f6dn842adc605b1bd4df@mail.gmail.com>
URL: https://gitlist.dev/e/1c5969370804240612i1dbd2f6dn842adc605b1bd4df%40mail.gmail.com
In-Reply-To: <alpine.DEB.1.00.0804240920170.26553@eeepc-johanness>

```
On Thu, Apr 24, 2008 at 4:21 AM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> 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!

```
