diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-01-13 11:33:34 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-13 11:33:35 -0800 |
commit | 9fac0777e16b6e342f7c84fb7059d6fca52505d2 (patch) | |
tree | e1a588d94b3f9727ef0586946d241798a6263551 /perl/Git/SVN | |
parent | Merge branch 'br/sha1-name-40-hex-no-disambiguation' (diff) | |
parent | pager: set LV=-c alongside LESS=FRSX (diff) | |
download | tgif-9fac0777e16b6e342f7c84fb7059d6fca52505d2.tar.xz |
Merge branch 'jn/pager-lv-default-env'
Just like we give a reasonable default for "less" via the LESS
environment variable, specify a reasonable default for "lv" via the
"LV" environment variable when spawning the pager.
* jn/pager-lv-default-env:
pager: set LV=-c alongside LESS=FRSX
Diffstat (limited to 'perl/Git/SVN')
-rw-r--r-- | perl/Git/SVN/Log.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/Git/SVN/Log.pm b/perl/Git/SVN/Log.pm index 3f8350a57d..34f2869ab5 100644 --- a/perl/Git/SVN/Log.pm +++ b/perl/Git/SVN/Log.pm @@ -117,6 +117,7 @@ sub run_pager { } open STDIN, '<&', $rfd or fatal "Can't redirect stdin: $!"; $ENV{LESS} ||= 'FRSX'; + $ENV{LV} ||= '-c'; exec $pager or fatal "Can't run pager: $! ($pager)"; } |