]> source.dussan.org Git - jgit.git/commit
jgit.sh: Implement pager support 90/3590/1
authorShawn O. Pearce <spearce@spearce.org>
Sun, 29 May 2011 20:05:03 +0000 (13:05 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 31 May 2011 15:58:45 +0000 (08:58 -0700)
commit0a39fb2ab65dfdbfbf8022cfdfc3975eba7ac6f2
tree6b810bdcb9e6c569d3d0bcf6e9eb906653e14566
parent8d1ac7a769b3fc4725537376e0e14d3b96ebbe3d
jgit.sh: Implement pager support

If the command is either `diff` or `log`, there is often a lot of
lines of output. Run these commands through $GIT_PAGER, $PAGER, or
`less` in order to make it easier to browse the output on a terminal.

Change-Id: I18b87ea4acf404b94788f2ac2101812bd13e6a0f
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.pgm/jgit.sh