diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2009-10-31 02:43:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-13 21:20:52 +0100 |
commit | dec543e62dbc47be0c06805330a20f7fa9f699a3 (patch) | |
tree | 5fb0e263b8ba9cbcfab0253a095271bc41f2fa19 /git-am.sh | |
parent | add -i, send-email, svn, p4, etc: use "git var GIT_EDITOR" (diff) | |
download | git-dec543e62dbc47be0c06805330a20f7fa9f699a3.tar.xz git-dec543e62dbc47be0c06805330a20f7fa9f699a3.zip |
am -i, git-svn: use "git var GIT_PAGER"
Use the new "git var GIT_PAGER" command to ask what pager to use.
Without this change, the core.pager configuration is ignored by
these commands.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-am.sh')
-rwxr-xr-x | git-am.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -649,7 +649,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 |