]> git.ipfire.org Git - thirdparty/git.git/commit
refspec.c: use designated initializers for "struct refspec_item"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 24 Feb 2022 09:33:05 +0000 (10:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Feb 2022 23:59:53 +0000 (15:59 -0800)
commitb3454e2df2e2b2dcad045c62bedf9d0353a63723
treedad3220a30aec8bf526747891ef45650f1340aa5
parenta9f6274fc07e2044895f1b14707ac059391a8837
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>
refspec.c