]> git.ipfire.org Git - thirdparty/git.git/commit - transport.h
connect, transport: encapsulate arg in struct
authorJonathan Tan <jonathantanmy@google.com>
Fri, 5 Feb 2021 20:48:48 +0000 (12:48 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Feb 2021 21:49:54 +0000 (13:49 -0800)
commit39835409d10de2402c4b3e10dba20286989627d4
treeb7517eb09a0c3a2298408ca81ef30d08e7ebf532
parent59e1205d167c9acc17114a2f96425325470b1db8
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>
builtin/clone.c
builtin/fetch-pack.c
builtin/fetch.c
builtin/ls-remote.c
connect.c
remote.h
transport-helper.c
transport-internal.h
transport.c
transport.h