summaryrefslogtreecommitdiffstats
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-13 20:33:34 +0100
committerJunio C Hamano <gitster@pobox.com>2014-01-13 20:33:35 +0100
commit9fac0777e16b6e342f7c84fb7059d6fca52505d2 (patch)
treee1a588d94b3f9727ef0586946d241798a6263551 /git-sh-setup.sh
parentMerge branch 'br/sha1-name-40-hex-no-disambiguation' (diff)
parentpager: set LV=-c alongside LESS=FRSX (diff)
downloadgit-9fac0777e16b6e342f7c84fb7059d6fca52505d2.tar.xz
git-9fac0777e16b6e342f7c84fb7059d6fca52505d2.zip
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 'git-sh-setup.sh')
-rw-r--r--git-sh-setup.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 190a5394b9..fffa3c72d7 100644
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -159,7 +159,8 @@ git_pager() {
GIT_PAGER=cat
fi
: ${LESS=-FRSX}
- export LESS
+ : ${LV=-c}
+ export LESS LV
eval "$GIT_PAGER" '"$@"'
}