interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / lib-pager.sh

15 lines · 313 bytes Raw Blame History
1# Helpers for tests of git's choice of pager.
2
3test_expect_success 'determine default pager' '
4 test_might_fail git config --unset core.pager &&
5 less=$(
6 sane_unset PAGER GIT_PAGER &&
7 git var GIT_PAGER
8 ) &&
9 test -n "$less"
10'
11
12if expr "$less" : '[a-z][a-z]*$' >/dev/null
13then
14 test_set_prereq SIMPLEPAGER
15fi