]> git.ipfire.org Git - thirdparty/git.git/commit
remote: use remote_state parameter internally
authorGlen Choo <chooglen@google.com>
Thu, 18 Nov 2021 00:53:23 +0000 (16:53 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Nov 2021 06:31:19 +0000 (22:31 -0800)
commit085b98f6cdbe9ed794e19ded00ccd0431c30faa0
tree3002c91fceb943ef7cb658c8dd6632fedf5db8f0
parentfd3cb0501e175bcac042587cb7bb75e16034a5b7
remote: use remote_state parameter internally

Without changing external-facing functions, replace
the_repository->remote_state internally by adding a struct remote_state
parameter.

As a result, external-facing functions are still tied to the_repository,
but most static functions no longer reference
the_repository->remote_state. The exceptions are those that are used in
a way that depends on external-facing functions e.g. the callbacks to
remote_get_1().

Signed-off-by: Glen Choo <chooglen@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c
remote.h