threads / patch / 7489

patch, 3 partsHuman friendly git: add another human readable option.

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

## tl;dr

4 messages between Apr 1, 2007 and Apr 1, 2007. Diffs are folded; open one to read it.

replies: 3people: 4as markdown or json

Sloof Lirpa· Apr 1, 2007, 00:00 UTC · lore
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(-)
Show changes to git.c +3 −0
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
Marco Costalba· Apr 1, 2007, 07:38 UTC · re: Sloof Lirpa · lore

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

On 4/1/07, Sloof Lirpa <sitemaster@cox.net> wrote:
Show 6 quoted lines
> 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.
>

When 'talking' to a computer I would rather prefer to type as less as possible, but I understand it's a personal taste.

   Marco
P.S: What about git, c'mon gimme that f*** files!!
Please don't get hungry, just a joke ;-)
Shawn O. Pearce· Apr 1, 2007, 07:47 UTC · re: Marco Costalba · lore

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

Marco Costalba <mcostalba@gmail.com> wrote:
Show 10 quoted lines
> On 4/1/07, Sloof Lirpa <sitemaster@cox.net> wrote:
> >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.
> >
> 
> When 'talking' to a computer I would rather prefer to type as less as
> possible, but I understand it's a personal taste.
I once worked with someone whose PS1 was set to:
	PS1='and now I shall '
It was quite humerous to read the screenbuffer from a terminal:
   and now I shall make world
   ...
   and now I shall make clean
   ...
   and now I shall telnet remotesystem
   ...
   and now I shall kill 1899
;-)
-- 
Shawn.
Eric Wong· Apr 1, 2007, 10:39 UTC · re: Sloof Lirpa · lore

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

Sloof Lirpa <sitemaster@cox.net> wrote:
Show 5 quoted lines
> 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.
Next we need:
	$ git, pretty please show
for cute dancing penguins to appear!
-- 
Eric Wong

← back to recent threads