summaryrefslogtreecommitdiff
path: root/protocol-caps.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-08-05 01:25:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-08-05 15:59:37 (GMT)
commit28a592e4f4870bdd444675b7240920d0879a9c1b (patch)
treef91d7478032cd3b5bc6eeef10d97eb28367835fd /protocol-caps.c
parent85baaed4757860eb54e6451be305bfb7ef863646 (diff)
downloadgit-28a592e4f4870bdd444675b7240920d0879a9c1b.zip
git-28a592e4f4870bdd444675b7240920d0879a9c1b.tar.gz
git-28a592e4f4870bdd444675b7240920d0879a9c1b.tar.bz2
serve.[ch]: don't pass "struct strvec *keys" to commands
The serve.c API added in ed10cb952d3 (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>
Diffstat (limited to 'protocol-caps.c')
-rw-r--r--protocol-caps.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocol-caps.c b/protocol-caps.c
index 13a9e63..4b345c5 100644
--- a/protocol-caps.c
+++ b/protocol-caps.c
@@ -74,8 +74,7 @@ static void send_info(struct repository *r, struct packet_writer *writer,
}
}
-int cap_object_info(struct repository *r, struct strvec *keys,
- struct packet_reader *request)
+int cap_object_info(struct repository *r, struct packet_reader *request)
{
struct requested_info info;
struct packet_writer writer;