]> git.ipfire.org Git - thirdparty/git.git/commit - urlmatch.h
urlmatch.[ch]: add and use URLMATCH_CONFIG_INIT
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 1 Oct 2021 10:27:33 +0000 (12:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Oct 2021 21:22:51 +0000 (14:22 -0700)
commit73ee449bbf2918e29d26361e57f35a24f224e3be
tree0884f8efad2f065ebd08bbcf44170dea6d92460d
parent4eb2bfdc92139f04619be21a354c025747e7ceea
urlmatch.[ch]: add and use URLMATCH_CONFIG_INIT

Change the initialization pattern of "struct urlmatch_config" to use
an *_INIT macro and designated initializers. Right now there's no
other "struct" member of "struct urlmatch_config" which would require
its own *_INIT, but it's good practice not to assume that. Let's also
change this to a designated initializer while we're at it.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c
credential.c
http.c
urlmatch.h