repo.or.cz
/
git
/
dkf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
disallow branch names that start with a hyphen
[git/dkf.git]
/
t
/
lib-pager.sh
blob
ba03eab14fc29934f095673fa82af658b06bf865
1
#!/bin/sh
2
3
test_expect_success
'determine default pager'
'
4
test_might_fail git config --unset core.pager &&
5
less=$(
6
unset PAGER GIT_PAGER;
7
git var GIT_PAGER
8
) &&
9
test -n "
$less
"
10
'
11
12
if
expr
"
$less
"
:
'[a-z][a-z]*$'
>/
dev
/
null
13
then
14
test_set_prereq SIMPLEPAGER
15
fi