]> git.99rst.org Git - git.git/commit
remote: move static variables into per-repository struct
authorGlen Choo <redacted>
Thu, 18 Nov 2021 00:53:22 +0000 (16:53 -0800)
committerJunio C Hamano <redacted>
Fri, 19 Nov 2021 06:31:19 +0000 (22:31 -0800)
commitfd3cb0501e175bcac042587cb7bb75e16034a5b7
tree50bb4343708d25a77d2c57d575691634f47088a5
parente083ef5d54707a4bb855e8ac6f6ee0576a020349
remote: move static variables into per-repository struct

remote.c does not works with non-the_repository because it stores its
state as static variables. To support non-the_repository, we can use a
per-repository struct for the remotes subsystem.

Prepare for this change by defining a struct remote_state that holds
the remotes subsystem state and move the static variables of remote.c
into the_repository->remote_state.

This introduces no behavioral or API changes.

Signed-off-by: Glen Choo <redacted>
Reviewed-by: Jonathan Tan <redacted>
Signed-off-by: Junio C Hamano <redacted>
remote.c
remote.h
repository.c
repository.h
git clone https://git.99rst.org/PROJECT