aboutsummaryrefslogtreecommitdiffstats
path: root/refs/debug.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-03-17 18:27:16 +0100
committerJunio C Hamano <gitster@pobox.com>2022-03-17 10:36:11 -0700
commite2f8acb6a0399c7480574d23c48c437e4849399a (patch)
treed469efa724da0da999c1ca292b3dd93c431c7b2f /refs/debug.c
parentrefs: use designated initializers for "struct ref_storage_be" (diff)
downloadgit-e2f8acb6a0399c7480574d23c48c437e4849399a.tar.gz
git-e2f8acb6a0399c7480574d23c48c437e4849399a.zip
refs: use designated initializers for "struct ref_iterator_vtable"
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/debug.c')
-rw-r--r--refs/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/refs/debug.c b/refs/debug.c
index b03a83258b..b83b581711 100644
--- a/refs/debug.c
+++ b/refs/debug.c
@@ -220,8 +220,9 @@ static int debug_ref_iterator_abort(struct ref_iterator *ref_iterator)
}
static struct ref_iterator_vtable debug_ref_iterator_vtable = {
- debug_ref_iterator_advance, debug_ref_iterator_peel,
- debug_ref_iterator_abort
+ .advance = debug_ref_iterator_advance,
+ .peel = debug_ref_iterator_peel,
+ .abort = debug_ref_iterator_abort,
};
static struct ref_iterator *