summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-08-11 13:26:58 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-11 13:26:58 -0700
commite72ecd324c54675ddf20ecb7b303ad5ec88f6301 (patch)
tree33fc3d9042e85c0dd3507c3c1fd4a323ba04d8a9 /t
parentMerge branch 'jk/ref-filter-colors' (diff)
parentclean.c: use designated initializer (diff)
downloadtgif-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 3ae394e934..556e1850e2 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