aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-11 13:26:58 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-11 13:26:58 -0700
commite72ecd324c54675ddf20ecb7b303ad5ec88f6301 (patch)
tree33fc3d9042e85c0dd3507c3c1fd4a323ba04d8a9 /t
parent15595ce438d0ce8b195187f00663baa407a2d024 (diff)
parent512f41cfac55c9dd2f6c47531ee6cbe803ed7ec2 (diff)
downloadgit-e72ecd324c54675ddf20ecb7b303ad5ec88f6301.tar.gz
git-e72ecd324c54675ddf20ecb7b303ad5ec88f6301.tar.xz
Merge branch 'jk/c99'
Start using selected c99 constructs in small, stable and essentialpart of the system to catch people who care about older compilers that do not grok them. * jk/c99: clean.c: use designated initializer strbuf: use designated initializers in STRBUF_INIT
Diffstat (limited to 't')
-rwxr-xr-xt/t7301-clean-interactive.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7301-clean-interactive.sh b/t/t7301-clean-interactive.sh
index 3ae394e93..556e1850e 100755
--- a/t/t7301-clean-interactive.sh
+++ b/t/t7301-clean-interactive.sh
@@ -472,4 +472,14 @@ test_expect_success 'git clean -id with prefix and path (ask)' '
'
+test_expect_success 'git clean -i paints the header in HEADER color' '
+ >a.out &&
+ echo q |
+ git -c color.ui=always clean -i |
+ test_decode_color |
+ head -n 1 >header &&
+ # not i18ngrep
+ grep "^<BOLD>" header
+'
+
test_done