mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ew/build-time-pager-tweaks'
The build procedure learned PAGER_ENV knob that lists what default environment variable settings to export for popular pagers. This mechanism is used to tweak the default settings to MORE on FreeBSD. * ew/build-time-pager-tweaks: pager: move pager-specific setup into the build
This commit is contained in:
@@ -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" '"$@"'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user