Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff-highlight: ignore test cruft
[gitweb.git]
/
git-sh-setup.sh
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index 0c34aa62f6b1b33be67f4221290c9c5ce55beabe..a8a4576342e519932be07fca5cbe2ee2fc0ab73b 100644
(file)
--- a/
git-sh-setup.sh
+++ b/
git-sh-setup.sh
@@
-163,9
+163,11
@@
git_pager() {
else
GIT_PAGER=cat
fi
- : "${LESS=-FRX}"
- : "${LV=-c}"
- export LESS LV
+ for vardef in @@PAGER_ENV@@
+ do
+ var=${vardef%%=*}
+ eval ": \"\${$vardef}\" && export $var"
+ done
eval "$GIT_PAGER" '"$@"'
}