git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/3] Human friendly git: add another human readable option.

From
SLSloof Lirpa <sitemaster@cox.net>
Date
Apr 1, 2007, 00:00 UTC
Message-ID
<7vk5wx556z.fsf@assigned-by-dhcp.cox.net>
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
Next: Marco Costalba
Message 1 of 4 in “Human friendly git: add another human readable option.”
  1. 3/3 Human friendly git: add another human readable option.Sloof Lirpa, Apr 1, 2007
  2. Marco CostalbaApr 1, 2007
  3. Shawn O. PearceApr 1, 2007
  4. Eric WongApr 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.