aboutsummaryrefslogtreecommitdiff
path: root/refs/ref-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-03-29 12:22:02 -0700
committerJunio C Hamano <gitster@pobox.com>2022-03-29 12:22:02 -0700
commit3d8046a820851621b8f195078fcac5b5c38fec86 (patch)
tree41af42e4a44d1b3210c6af15377f549d31d62423 /refs/ref-cache.c
parentabf474a5dd901f28013c52155411a48fd4c09922 (diff)
parent5b8754043c9cbe47f3de35f2d196f074645d135f (diff)
downloadgit-3d8046a820851621b8f195078fcac5b5c38fec86.tar.xz
Merge branch 'ab/refs-various-fixes'
Code clean-up. * ab/refs-various-fixes: refs debug: add a wrapper for "read_symbolic_ref" packed-backend: remove stub BUG(...) functions misc *.c: use designated initializers for struct assignments refs: use designated initializers for "struct ref_iterator_vtable" refs: use designated initializers for "struct ref_storage_be"
Diffstat (limited to 'refs/ref-cache.c')
-rw-r--r--refs/ref-cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/refs/ref-cache.c b/refs/ref-cache.c
index be4aa5e098..3080ef944d 100644
--- a/refs/ref-cache.c
+++ b/refs/ref-cache.c
@@ -456,9 +456,9 @@ static int cache_ref_iterator_abort(struct ref_iterator *ref_iterator)
}
static struct ref_iterator_vtable cache_ref_iterator_vtable = {
- cache_ref_iterator_advance,
- cache_ref_iterator_peel,
- cache_ref_iterator_abort
+ .advance = cache_ref_iterator_advance,
+ .peel = cache_ref_iterator_peel,
+ .abort = cache_ref_iterator_abort
};
struct ref_iterator *cache_ref_iterator_begin(struct ref_cache *cache,