A sister series to the just-submitted series of trivial designated initalizer cleanups: https://lore.kernel.org/git/cover-0.5-00000000000-20210927T003330Z-avarab@xxxxxxxxx/ This doesn't conflict semantically or textually with that series, but is migrating to easier to manage initialization patterns for the same reasons. The code changes are all rather small, the diff in 6/6 looks scary, but as --word-diff will show most of it schanging x->y to an &x->y and the like, as two struct members were changed from being pointers. Ævar Arnfjörð Bjarmason (6): daemon.c: refactor hostinfo_init() to HOSTINFO_INIT macro builtin/blame.c: refactor commit_info_init() to COMMIT_INFO_INIT macro shortlog: use designated initializer for "struct shortlog" urlmatch.[ch]: add and use URLMATCH_CONFIG_INIT builtin/remote.c: add and use a REF_STATES_INIT builtin/remote.c: add and use SHOW_INFO_INIT builtin/blame.c | 30 ++++++------ builtin/config.c | 3 +- builtin/remote.c | 111 ++++++++++++++++++++++----------------------- builtin/shortlog.c | 2 +- credential.c | 4 +- daemon.c | 19 +++----- http.c | 4 +- shortlog.h | 4 ++ urlmatch.h | 4 ++ 9 files changed, 87 insertions(+), 94 deletions(-) -- 2.33.0.1316.gb2e9b3ba3ae