Revision 60b6e2200deff208a9757721544a3a311034804f authored by Jonathan Nieder on 19 February 2010, 07:18:58 UTC, committed by Junio C Hamano on 20 February 2010, 17:34:28 UTC
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>
1 parent f6dff11
File | Mode | Size |
---|---|---|
fnmatch | ||
nedmalloc | ||
regex | ||
vcbuild | ||
win32 | ||
basename.c | -rw-r--r-- | 334 bytes |
bswap.h | -rw-r--r-- | 1.0 KB |
cygwin.c | -rw-r--r-- | 4.8 KB |
cygwin.h | -rw-r--r-- | 275 bytes |
fopen.c | -rw-r--r-- | 931 bytes |
hstrerror.c | -rw-r--r-- | 513 bytes |
inet_ntop.c | -rw-r--r-- | 4.9 KB |
inet_pton.c | -rw-r--r-- | 6.9 KB |
memmem.c | -rw-r--r-- | 752 bytes |
mingw.c | -rw-r--r-- | 36.6 KB |
mingw.h | -rw-r--r-- | 7.8 KB |
mkdtemp.c | -rw-r--r-- | 152 bytes |
mkstemps.c | -rw-r--r-- | 1.7 KB |
mmap.c | -rw-r--r-- | 747 bytes |
msvc.c | -rw-r--r-- | 575 bytes |
msvc.h | -rw-r--r-- | 1.1 KB |
pread.c | -rw-r--r-- | 433 bytes |
qsort.c | -rw-r--r-- | 1.1 KB |
setenv.c | -rw-r--r-- | 786 bytes |
snprintf.c | -rw-r--r-- | 1.4 KB |
strcasestr.c | -rw-r--r-- | 431 bytes |
strlcpy.c | -rw-r--r-- | 247 bytes |
strtoumax.c | -rw-r--r-- | 217 bytes |
unsetenv.c | -rw-r--r-- | 558 bytes |
win32.h | -rw-r--r-- | 872 bytes |
win32mmap.c | -rw-r--r-- | 904 bytes |
winansi.c | -rw-r--r-- | 6.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...