From: Ævar Arnfjörð Bjarmason Date: Thu, 24 Feb 2022 09:33:05 +0000 (+0100) Subject: refspec.c: use designated initializers for "struct refspec_item" X-Git-Tag: v2.36.0-rc0~91^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3454e2df2e2b2dcad045c62bedf9d0353a63723;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/refspec.c b/refspec.c index e3d852c0bf..63e3112104 100644 --- a/refspec.c +++ b/refspec.c @@ -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 */