]> git.99rst.org Git - git.git/commit
remote: remove the_repository->remote_state from static methods
authorGlen Choo <redacted>
Thu, 18 Nov 2021 00:53:24 +0000 (16:53 -0800)
committerJunio C Hamano <redacted>
Fri, 19 Nov 2021 06:31:19 +0000 (22:31 -0800)
commit56eed3422cb4605a616daab589b94a843a75651f
treed5d1b15dc560e7d1f620abbcd5faab02d31917bd
parent085b98f6cdbe9ed794e19ded00ccd0431c30faa0
remote: remove the_repository->remote_state from static methods

Replace all remaining references of the_repository->remote_state in
static functions with a struct remote_state parameter.

To do so, move read_config() calls to non-static functions and create a
family of static functions, "remotes_*", that behave like "repo_*", but
accept struct remote_state instead of struct repository. In the case
where a static function calls a non-static function, replace the
non-static function with its "remotes_*" equivalent.

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