1
0
mirror of https://github.com/git/git.git synced 2025-02-06 09:44:30 +00:00
git/server-info.h
Patrick Steinhardt c365dbb44e server-info: stop using the_repository
Stop using `the_repository` in the "server-info" subsystem by passing in
a repository when updating server info and storing the repository in the
`update_info_ctx` structure to make it accessible to other functions.

Adjust callers accordingly by using `the_repository`. While there may be
some callers that have a repository available in their context, this
trivial conversion allows for easier verification and bubbles up the use
of `the_repository` by one level.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-12-18 10:44:30 -08:00

10 lines
177 B
C

#ifndef SERVER_INFO_H
#define SERVER_INFO_H
struct repository;
/* Dumb servers support */
int update_server_info(struct repository *r, int force);
#endif /* SERVER_INFO_H */