refspec.c: use designated initializers for "struct refspec_item"

Change the "struct refspec_item" at the top of refspec.c to use designated initializers. Let's keep the "= 0" assignments for self-documentation purposes, even though they're now redundant. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 24, 2022 at 10:33 UTC b3454e2df2e2b2dcad045c62bedf9d0353a63723
1 file changed +7 -7
refspec.c
+7 -7
@@ -4,13 +4,13 @@
4 #include "refspec.h"
5
6 static struct refspec_item s_tag_refspec = {
7 - 0,
8 - 1,
9 - 0,
10 - 0,
11 - 0,
12 - "refs/tags/*",
13 - "refs/tags/*"
7 + .force = 0,
8 + .pattern = 1,
9 + .matching = 0,
10 + .exact_sha1 = 0,
11 + .negative = 0,
12 + .src = "refs/tags/*",
13 + .dst = "refs/tags/*",
14 };
15
16 /* See TAG_REFSPEC for the string version */