Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-11 20:21:48 +0300
committerJunio C Hamano <gitster@pobox.com>2021-10-11 20:21:48 +0300
commit404c4a54624c3e0ea9066809344a6269c16de69f (patch)
tree53e4675199a1cfafdaea4f3304564446375812ed /submodule.c
parent859a585bdf9baa257c08a50895d9829171a5ad46 (diff)
parent538835d2ac151abbe90058becfc0dc061d33302c (diff)
Merge branch 'ab/designated-initializers'
Code clean-up. * 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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/submodule.c b/submodule.c
index 62beb8fd5f..96487517f9 100644
--- a/submodule.c
+++ b/submodule.c
@@ -1318,9 +1318,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)