diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-08-05 01:25:36 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-05 15:59:37 (GMT) |
commit | 1fd88224a310f91c7ccac480473df40979d91f92 (patch) | |
tree | b2b701334561d0979ac9c22967a4048e22047f97 /transport-helper.c | |
parent | 9b1cdd334d458a063dd43058fca551b7ab57e333 (diff) | |
download | git-1fd88224a310f91c7ccac480473df40979d91f92.zip git-1fd88224a310f91c7ccac480473df40979d91f92.tar.gz git-1fd88224a310f91c7ccac480473df40979d91f92.tar.bz2 |
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>
Diffstat (limited to 'transport-helper.c')
-rw-r--r-- | transport-helper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/transport-helper.c b/transport-helper.c index 8d445a8..e8dbdd1 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -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) |