Skip to contentSkip to conversation

Human friendly git: add another human readable option.

PATCH In review Sloof Lirpa 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

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.

---
 git.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
git.c +3 -0
index 7909fd3..9124998 100644
@@ -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;
 
Signature · 1 line
1.5.1.rc3.26.g4f01
#1 lore raw
Quoted 5 lines · Sloof Lirpa

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!

Signature · 1 line
Eric Wong
#2 lore raw
In reply to Sloof Lirpa
Quoted 6 lines · Sloof Lirpa

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

#3 lore raw
Quoted 10 lines · Marco Costalba
Quoted 6 lines · Sloof Lirpa

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

;-)

Signature · 1 line
Shawn.