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
4
remote.h
4
remote.h
@ -6,6 +6,8 @@
|
||||
#include "hashmap.h"
|
||||
#include "refspec.h"
|
||||
|
||||
struct transport_ls_refs_options;
|
||||
|
||||
/**
|
||||
* The API gives access to the configuration related to remotes. It handles
|
||||
* all three configuration mechanisms historically and currently used by Git,
|
||||
@ -196,7 +198,7 @@ struct ref **get_remote_heads(struct packet_reader *reader,
|
||||
/* Used for protocol v2 in order to retrieve refs from a remote */
|
||||
struct ref **get_remote_refs(int fd_out, struct packet_reader *reader,
|
||||
struct ref **list, int for_push,
|
||||
const struct strvec *ref_prefixes,
|
||||
struct transport_ls_refs_options *transport_options,
|
||||
const struct string_list *server_options,
|
||||
int stateless_rpc);
|
||||
|
||||
|
Reference in New Issue
Block a user