diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-09-27 15:02:13 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-09-27 15:02:13 -0700 |
| commit | a30321b9eaede5a1d639936d212e2d0fc8d414c8 (patch) | |
| tree | 56806f1b45ec4b31eaa6dc182d42798703d16d8e /submodule.c | |
| parent | ddb1055343948e0d0bc81f8d20245f1ada6430a0 (diff) | |
| parent | 538835d2ac151abbe90058becfc0dc061d33302c (diff) | |
| download | git-a30321b9eaede5a1d639936d212e2d0fc8d414c8.tar.xz | |
Merge branch 'ab/designated-initializers' into ab/designated-initializers-more
* ab/designated-initializers:
cbtree.h: define cb_init() in terms of CBTREE_INIT
*.h: move some *_INIT to designated initializers
*.h _INIT macros: don't specify fields equal to 0
*.[ch] *_INIT macros: use { 0 } for a "zero out" idiom
submodule-config.h: remove unused SUBMODULE_INIT macro
Diffstat (limited to 'submodule.c')
| -rw-r--r-- | submodule.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/submodule.c b/submodule.c index 78aed03d92..03cf36707a 100644 --- a/submodule.c +++ b/submodule.c @@ -1321,9 +1321,11 @@ struct submodule_parallel_fetch { struct strbuf submodules_with_errors; }; -#define SPF_INIT {0, STRVEC_INIT, NULL, NULL, 0, 0, 0, 0, \ - STRING_LIST_INIT_DUP, \ - NULL, 0, 0, STRBUF_INIT} +#define SPF_INIT { \ + .args = STRVEC_INIT, \ + .changed_submodule_names = STRING_LIST_INIT_DUP, \ + .submodules_with_errors = STRBUF_INIT, \ +} static int get_fetch_recurse_config(const struct submodule *submodule, struct submodule_parallel_fetch *spf) |
