diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2021-02-05 21:48:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-05 22:49:54 +0100 |
commit | 39835409d10de2402c4b3e10dba20286989627d4 (patch) | |
tree | b7517eb09a0c3a2298408ca81ef30d08e7ebf532 /transport-internal.h | |
parent | ls-refs: report unborn targets of symrefs (diff) | |
download | git-39835409d10de2402c4b3e10dba20286989627d4.tar.xz git-39835409d10de2402c4b3e10dba20286989627d4.zip |
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>
Diffstat (limited to 'transport-internal.h')
-rw-r--r-- | transport-internal.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/transport-internal.h b/transport-internal.h index 27c9daffc4..b60f1ba907 100644 --- a/transport-internal.h +++ b/transport-internal.h @@ -4,6 +4,7 @@ struct ref; struct transport; struct strvec; +struct transport_ls_refs_options; struct transport_vtable { /** @@ -18,19 +19,12 @@ struct transport_vtable { * the transport to try to share connections, for_push is a * hint as to whether the ultimate operation is a push or a fetch. * - * If communicating using protocol v2 a list of prefixes can be - * provided to be sent to the server to enable it to limit the ref - * advertisement. Since ref filtering is done on the server's end, and - * only when using protocol v2, this list will be ignored when not - * using protocol v2 meaning this function can return refs which don't - * match the provided ref_prefixes. - * * If the transport is able to determine the remote hash for * the ref without a huge amount of effort, it should store it * in the ref's old_sha1 field; otherwise it should be all 0. **/ struct ref *(*get_refs_list)(struct transport *transport, int for_push, - const struct strvec *ref_prefixes); + struct transport_ls_refs_options *transport_options); /** * Fetch the objects for the given refs. Note that this gets |