serve.[ch]: don't pass "struct strvec *keys" to commands
The serve.c API added in ed10cb952d
(serve: introduce git-serve,
2018-03-15) was passing in the raw capabilities "keys", but nothing
downstream of it ever used them.
Let's remove that code because it's not needed. If we do end up
needing to pass information about the advertisement in the future
it'll make more sense to have serve.c parse the capabilities keys and
pass the result of its parsing, rather than expecting expecting its
API users to parse the same keys again.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
85baaed475
commit
28a592e4f4
@ -2,10 +2,8 @@
|
||||
#define LS_REFS_H
|
||||
|
||||
struct repository;
|
||||
struct strvec;
|
||||
struct packet_reader;
|
||||
int ls_refs(struct repository *r, struct strvec *keys,
|
||||
struct packet_reader *request);
|
||||
int ls_refs(struct repository *r, struct packet_reader *request);
|
||||
int ls_refs_advertise(struct repository *r, struct strbuf *value);
|
||||
|
||||
#endif /* LS_REFS_H */
|
||||
|
Reference in New Issue
Block a user