https://github.com/git/git
Raw File
Tip revision: 828ea97de486c1693d6e4f2c7347acb50235a85d authored by Junio C Hamano on 27 January 2012, 19:31:02 UTC
Git 1.7.9
Tip revision: 828ea97
lib-pager.sh
#!/bin/sh

test_expect_success 'determine default pager' '
	test_might_fail git config --unset core.pager &&
	less=$(
		unset PAGER GIT_PAGER;
		git var GIT_PAGER
	) &&
	test -n "$less"
'

if expr "$less" : '[a-z][a-z]*$' >/dev/null
then
	test_set_prereq SIMPLEPAGER
fi
back to top