Skip to content

Commit

Permalink
refspec.c: use designated initializers for "struct refspec_item"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
avar authored and gitster committed Feb 24, 2022
1 parent a9f6274 commit b3454e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions refspec.c
Expand Up @@ -4,13 +4,13 @@
#include "refspec.h"

static struct refspec_item s_tag_refspec = {
0,
1,
0,
0,
0,
"refs/tags/*",
"refs/tags/*"
.force = 0,
.pattern = 1,
.matching = 0,
.exact_sha1 = 0,
.negative = 0,
.src = "refs/tags/*",
.dst = "refs/tags/*",
};

/* See TAG_REFSPEC for the string version */
Expand Down

0 comments on commit b3454e2

Please sign in to comment.