git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] Human friendly git: add another human readable option.
@ 2007-04-01  0:00 Sloof Lirpa
  2007-04-01  7:38 ` Marco Costalba
  2007-04-01 10:39 ` Eric Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Sloof Lirpa @ 2007-04-01  0:00 UTC (permalink / raw)
  To: Junio C Hamamo; +Cc: git

Building on top of the previous patches, this allows you to say:

	$ git, please nicely ls-files

to get a paginated output of ls-files.

Signed-off-by: Sloof Lirpa <sitemaster@cox.net>
---
 git.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/git.c b/git.c
index 7909fd3..9124998 100644
--- a/git.c
+++ b/git.c
@@ -42,6 +42,9 @@ static int handle_options(const char*** argv, int* argc)
 		if (!strcmp(cmd, "please"))
 			; /* no-op */
 
+		else if (!strcmp(cmd, "nicely"))
+			setup_pager();
+
 		else if (cmd[0] != '-')
 			break;
 
-- 
1.5.1.rc3.26.g4f01

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

end of thread, other threads:[~2007-04-01 10:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-01  0:00 [PATCH 3/3] Human friendly git: add another human readable option Sloof Lirpa
2007-04-01  7:38 ` Marco Costalba
2007-04-01  7:47   ` Shawn O. Pearce
2007-04-01 10:39 ` Eric Wong

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