summaryrefslogtreecommitdiffstats
path: root/midx.c
diff options
context:
space:
mode:
authorGlen Choo <chooglen@google.com>2021-11-18 01:53:24 +0100
committerJunio C Hamano <gitster@pobox.com>2021-11-19 07:31:19 +0100
commit56eed3422cb4605a616daab589b94a843a75651f (patch)
treed5d1b15dc560e7d1f620abbcd5faab02d31917bd /midx.c
parentremote: use remote_state parameter internally (diff)
downloadgit-56eed3422cb4605a616daab589b94a843a75651f.tar.xz
git-56eed3422cb4605a616daab589b94a843a75651f.zip
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 <chooglen@google.com> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.c')
0 files changed, 0 insertions, 0 deletions