X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-am.sh;h=4838cdb9ede8765b37ab663aa59fb1b011a30b4c;hb=800d1fb0ab4bc9c1f4cd13f7cb7d8851f23a3e50;hp=f48620d5bc1dfba2012b3a7c06477f97ddef9282;hpb=c8b1d761f61c4be0b036620ba418ff0e97979fde;p=git.git diff --git a/git-am.sh b/git-am.sh index f48620d5b..4838cdb9e 100755 --- a/git-am.sh +++ b/git-am.sh @@ -657,7 +657,10 @@ do [eE]*) git_editor "$dotest/final-commit" action=again ;; [vV]*) action=again - LESS=-S ${PAGER:-less} "$dotest/patch" ;; + : ${GIT_PAGER=$(git var GIT_PAGER)} + : ${LESS=-FRSX} + export LESS + $GIT_PAGER "$dotest/patch" ;; *) action=again ;; esac done