Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-14 18:38:09 +0300
committerJunio C Hamano <gitster@pobox.com>2017-07-18 22:45:20 +0300
commit512f41cfac55c9dd2f6c47531ee6cbe803ed7ec2 (patch)
tree2ae9ad576d45228908b96a77b2ae315585f56fc1 /t/t7301-clean-interactive.sh
parentcbc0f81d96f05d8c88dd29a69d7571baa204f933 (diff)
clean.c: use designated initializer
This is another test balloon to see if we get complaints from people whose compilers do not support designated initializer for arrays. The use of the feature is not all that interesting for cases like the one this patch touches, where the initialized elements of the array is dense, but it would be nice if we can use the feature to initialize an array that has elements initialized to interesting values only sparsely. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7301-clean-interactive.sh')
-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