From 306f22dbc8f43feeed735905276c48a96c63b9e5 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Wed, 16 May 2018 15:58:17 -0700 Subject: transport: convert transport_push to take a struct refspec Convert 'transport_push()' to take a 'struct refspec' as a parameter instead of an array of strings which represent refspecs. Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- transport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transport.h') diff --git a/transport.h b/transport.h index e783cfa075..e2c809af4d 100644 --- a/transport.h +++ b/transport.h @@ -197,7 +197,7 @@ void transport_set_verbosity(struct transport *transport, int verbosity, #define REJECT_NEEDS_FORCE 0x10 int transport_push(struct transport *connection, - int refspec_nr, const char **refspec, int flags, + struct refspec *rs, int flags, unsigned int * reject_reasons); /* -- cgit v1.2.3 From 7a78a82b6c3bb2a6ebaddf3354b6d97939bdb2ab Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Wed, 16 May 2018 15:58:19 -0700 Subject: transport: remove transport_verify_remote_names Remove 'transprot_verify_remote_names()' because all callers have migrated to using 'struct refspec' which performs the same checks in 'parse_refspec()'. Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- transport.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'transport.h') diff --git a/transport.h b/transport.h index e2c809af4d..bac085ce0e 100644 --- a/transport.h +++ b/transport.h @@ -227,8 +227,6 @@ int transport_helper_init(struct transport *transport, const char *name); int bidirectional_transfer_loop(int input, int output); /* common methods used by transport.c and builtin/send-pack.c */ -void transport_verify_remote_names(int nr_heads, const char **heads); - void transport_update_tracking_ref(struct remote *remote, struct ref *ref, int verbose); int transport_refs_pushed(struct ref *ref); -- cgit v1.2.3