aboutsummaryrefslogtreecommitdiff
path: root/pager.c
Commit message (Collapse)AuthorAge
* Merge branch 'fix'Junio C Hamano2006-04-21
|\ | | | | | | | | * fix: git-log produces no output
| * git-log produces no outputLinus Torvalds2006-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When $PAGER is set to 'less -i', we used to fail because we assumed the $PAGER is a command and simply exec'ed it. Try exec first, and then run it through shell if it fails. This allows even funkier PAGERs like these ;-): PAGER='sed -e "s/^/`date`: /" | more' PAGER='contrib/colordiff.perl | less -RS' Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
* | Do not fork PAGER=catJunio C Hamano2006-04-16
|/ | | | | | | | 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: do not fork a pager if PAGER is set to empty.Johannes Schindelin2006-04-16
| | | | | | | | | | This skips an extra pipe, and helps debugging tremendously. [jc: PAGER=cat is a questionable hack and should be done as a separate patch. ] Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
* Introduce trivial new pager.c helper infrastructureLinus Torvalds2006-02-28
This introduces the new function void setup_pager(void); to set up output to be written through a pager applocation. All in preparation for doing the simple scripts in C. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>