Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Choo <chooglen@google.com>2021-11-18 03:53:23 +0300
committerJunio C Hamano <gitster@pobox.com>2021-11-19 09:31:19 +0300
commit085b98f6cdbe9ed794e19ded00ccd0431c30faa0 (patch)
tree3002c91fceb943ef7cb658c8dd6632fedf5db8f0 /remote.h
parentfd3cb0501e175bcac042587cb7bb75e16034a5b7 (diff)
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>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index d21c035f1b..85a730b8ef 100644
--- a/remote.h
+++ b/remote.h
@@ -52,6 +52,8 @@ struct remote_state {
struct rewrites rewrites;
struct rewrites rewrites_push;
+
+ int initialized;
};
void remote_state_clear(struct remote_state *remote_state);