diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-11-06 13:11:22 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-06 13:11:22 +0900 |
commit | 36625e219dc74bb2640e07e275fb30bffa47b4cd (patch) | |
tree | b7ffc36504c9c4bfe4e78cfb7952009edd2df11d /t/t7006-pager.sh | |
parent | Merge branch 'jc/no-cmd-as-subroutine' (diff) | |
parent | column: do not include pager.c (diff) | |
download | tgif-36625e219dc74bb2640e07e275fb30bffa47b4cd.tar.xz |
Merge branch 'kd/auto-col-with-pager-fix'
"auto" as a value for the columnar output configuration ought to
judge "is the output consumed by humans?" with the same criteria as
"auto" for coloured output configuration, i.e. either the standard
output stream is going to tty, or a pager is in use. We forgot the
latter, which has been fixed.
* kd/auto-col-with-pager-fix:
column: do not include pager.c
column: show auto columns when pager is active
Diffstat (limited to 't/t7006-pager.sh')
-rwxr-xr-x | t/t7006-pager.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh index f0f1abd1c2..865168ec6a 100755 --- a/t/t7006-pager.sh +++ b/t/t7006-pager.sh @@ -570,4 +570,18 @@ test_expect_success 'command with underscores does not complain' ' test_cmp expect actual ' +test_expect_success TTY 'git tag with auto-columns ' ' + test_commit one && + test_commit two && + test_commit three && + test_commit four && + test_commit five && + cat >expect <<-\EOF && + initial one two three four five + EOF + test_terminal env PAGER="cat >actual" COLUMNS=80 \ + git -c column.ui=auto tag --sort=authordate && + test_cmp expect actual +' + test_done |