mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
connect, transport: encapsulate arg in struct
In a future patch we plan to return the name of an unborn current branch from deep in the callchain to a caller via a new pointer parameter that points at a variable in the caller when the caller calls get_remote_refs() and transport_get_remote_refs(). In preparation for that, encapsulate the existing ref_prefixes parameter into a struct. The aforementioned unborn current branch will go into this new struct in the future patch. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
59e1205d16
commit
39835409d1
@@ -1162,13 +1162,14 @@ static int has_attribute(const char *attrs, const char *attr)
|
||||
}
|
||||
|
||||
static struct ref *get_refs_list(struct transport *transport, int for_push,
|
||||
const struct strvec *ref_prefixes)
|
||||
struct transport_ls_refs_options *transport_options)
|
||||
{
|
||||
get_helper(transport);
|
||||
|
||||
if (process_connect(transport, for_push)) {
|
||||
do_take_over(transport);
|
||||
return transport->vtable->get_refs_list(transport, for_push, ref_prefixes);
|
||||
return transport->vtable->get_refs_list(transport, for_push,
|
||||
transport_options);
|
||||
}
|
||||
|
||||
return get_refs_list_using_list(transport, for_push);
|
||||
|
||||
Reference in New Issue
Block a user