]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/clean.c
clean.c: use designated initializer
authorJunio C Hamano <gitster@pobox.com>
Fri, 14 Jul 2017 15:38:09 +0000 (08:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Jul 2017 19:45:20 +0000 (12:45 -0700)
commit512f41cfac55c9dd2f6c47531ee6cbe803ed7ec2
tree2ae9ad576d45228908b96a77b2ae315585f56fc1
parentcbc0f81d96f05d8c88dd29a69d7571baa204f933
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>
builtin/clean.c
t/t7301-clean-interactive.sh