git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] make git-status use a pager
@ 2008-04-24  0:57 Bart Trojanowski
  2008-04-24  8:21 ` Johannes Schindelin
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Trojanowski @ 2008-04-24  0:57 UTC (permalink / raw)
  To: git; +Cc: Bart Trojanowski

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] make git-status use a pager
  2008-04-24  0:57 [PATCH] make git-status use a pager Bart Trojanowski
@ 2008-04-24  8:21 ` Johannes Schindelin
  2008-04-24 13:12   ` Matt Graham
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Schindelin @ 2008-04-24  8:21 UTC (permalink / raw)
  To: Bart Trojanowski; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] make git-status use a pager
  2008-04-24  8:21 ` Johannes Schindelin
@ 2008-04-24 13:12   ` Matt Graham
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Graham @ 2008-04-24 13:12 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Bart Trojanowski, git

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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-24 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24  0:57 [PATCH] make git-status use a pager Bart Trojanowski
2008-04-24  8:21 ` Johannes Schindelin
2008-04-24 13:12   ` Matt Graham

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).