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

Subsystems: the rest

DORMANTno replies

4 messages, 4 authors, 2016-06-15 · open the first message on its own page

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

From: Sloof Lirpa <hidden>
Date: 2016-06-15 22:43:02

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 <redacted>
---
 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

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

From: Marco Costalba <hidden>
Date: 2016-06-15 22:43:02

On 4/1/07, Sloof Lirpa [off-list ref] 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.

   Marco

P.S: What about git, c'mon gimme that f*** files!!

Please don't get hungry, just a joke ;-)

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

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:02

Marco Costalba [off-list ref] wrote:
On 4/1/07, Sloof Lirpa [off-list ref] wrote:
quoted
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.

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

From: Eric Wong <hidden>
Date: 2016-06-15 22:43:02

Sloof Lirpa [off-list ref] 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.
Next we need:

	$ git, pretty please show

for cute dancing penguins to appear!

-- 
Eric Wong
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help