diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-02-19 01:18:58 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-20 09:34:28 -0800 |
commit | 60b6e2200deff208a9757721544a3a311034804f (patch) | |
tree | b44b0706189ac92ecaab61441bea0efda06d9a87 /Documentation | |
parent | am: Fix launching of pager (diff) | |
download | tgif-60b6e2200deff208a9757721544a3a311034804f.tar.xz |
tests: Add tests for automatic use of pager
Git’s automatic pagination support has some subtleties. Add some
tests to make sure we don’t break:
- when git will use a pager by default;
- the effect of the --paginate and --no-pager options;
- the effect of pagination on use of color;
- how the choice of pager is configured.
This does not yet test:
- use of pager by scripted commands (git svn and git am);
- effect of the pager.* configuration variables;
- setting of the LESS variable.
Some features involve checking whether stdout is a terminal, so many
of these tests are skipped unless output is passed through to the
terminal (i.e., unless $GIT_TEST_OPTS includes --verbose).
The immediate purpose for these tests was to avoid making things worse
after the breakage from my jn/editor-pager series (see commit 376f39,
2009-11-20). Thanks to Sebastian Celis <sebastian@sebastiancelis.com>
for the report.
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions