pkt-line: add functions to read/write flush terminated packet streams
[gitweb.git] / git-sh-setup.sh
index 0c34aa62f6b1b33be67f4221290c9c5ce55beabe..a8a4576342e519932be07fca5cbe2ee2fc0ab73b 100644 (file)
@@ -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" '"$@"'
 }