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
This commit is contained in:
Junio C Hamano
2014-01-13 11:33:34 -08:00
5 changed files with 28 additions and 3 deletions

View File

@ -159,7 +159,8 @@ git_pager() {
GIT_PAGER=cat
fi
: ${LESS=-FRSX}
export LESS
: ${LV=-c}
export LESS LV
eval "$GIT_PAGER" '"$@"'
}