projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
402461a
)
Do not fork PAGER=cat
author
Junio C Hamano
<junkio@cox.net>
Sun, 16 Apr 2006 08:46:08 +0000
(
01:46
-0700)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 16 Apr 2006 08:46:08 +0000
(
01:46
-0700)
Unless the user has a nonstandard "cat" command that does not
meow like a cat, this should not break anything and would save an
extra pipe.
Signed-off-by: Junio C Hamano <junkio@cox.net>
pager.c
patch
|
blob
|
history
diff --git
a/pager.c
b/pager.c
index e5ba2738b681387495b840d39dfeca920c865616..b063353d96eb6d526438c1fa22cacd28bc12b0c1 100644
(file)
--- a/
pager.c
+++ b/
pager.c
@@
-20,7
+20,7
@@
void setup_pager(void)
return;
if (!pager)
pager = "less";
- else if (!*pager)
+ else if (!*pager
|| !strcmp(pager, "cat")
)
return;
if (pipe(fd) < 0)