Skip to content

Commit b3454e2

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a9f6274 commit b3454e2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

refspec.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
#include "refspec.h"
55

66
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/*",
1414
};
1515

1616
/* See TAG_REFSPEC for the string version */

0 commit comments

Comments
 (0)