mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
transport: use designated initializers
Change the assignments to the various transport_vtables to use designated initializers, this makes the code easier to read and maintain. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
9b1cdd334d
commit
1fd88224a3
@@ -1261,12 +1261,12 @@ static struct ref *get_refs_list_using_list(struct transport *transport,
|
||||
}
|
||||
|
||||
static struct transport_vtable vtable = {
|
||||
set_helper_option,
|
||||
get_refs_list,
|
||||
fetch_refs,
|
||||
push_refs,
|
||||
connect_helper,
|
||||
release_helper
|
||||
.set_option = set_helper_option,
|
||||
.get_refs_list = get_refs_list,
|
||||
.fetch_refs = fetch_refs,
|
||||
.push_refs = push_refs,
|
||||
.connect = connect_helper,
|
||||
.disconnect = release_helper
|
||||
};
|
||||
|
||||
int transport_helper_init(struct transport *transport, const char *name)
|
||||
|
||||
Reference in New Issue
Block a user