1
0
mirror of https://github.com/git/git.git synced 2025-02-06 09:26:16 +00:00
git/serve.h
Patrick Steinhardt 395b584b57 serve: stop using the_repository
Stop using `the_repository` in the "serve" subsystem by passing in a
repository when advertising capabilities or serving requests.

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
208 B
C

#ifndef SERVE_H
#define SERVE_H
struct repository;
void protocol_v2_advertise_capabilities(struct repository *r);
void protocol_v2_serve_loop(struct repository *r, int stateless_rpc);
#endif /* SERVE_H */