summaryrefslogtreecommitdiffstats
path: root/ls-refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-21 00:20:43 +0200
committerJunio C Hamano <gitster@pobox.com>2021-09-21 00:20:43 +0200
commit5331af2352be0d6dd57a5fc4c5dfce278cf911c7 (patch)
tree40828a511f8bfc5c31b5be61339f2d32ab6608d9 /ls-refs.c
parentMerge branch 'ar/submodule-add-more' (diff)
parentupload-pack: document and rename --advertise-refs (diff)
downloadgit-5331af2352be0d6dd57a5fc4c5dfce278cf911c7.tar.xz
git-5331af2352be0d6dd57a5fc4c5dfce278cf911c7.zip
Merge branch 'ab/serve-cleanup'
Code clean-up around "git serve". * ab/serve-cleanup: upload-pack: document and rename --advertise-refs serve.[ch]: remove "serve_options", split up --advertise-refs code {upload,receive}-pack tests: add --advertise-refs tests serve.c: move version line to advertise_capabilities() serve: move transfer.advertiseSID check into session_id_advertise() serve.[ch]: don't pass "struct strvec *keys" to commands serve: use designated initializers transport: use designated initializers transport: rename "fetch" in transport_vtable to "fetch_refs" serve: mark has_capability() as static
Diffstat (limited to 'ls-refs.c')
-rw-r--r--ls-refs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ls-refs.c b/ls-refs.c
index 5ad521c6c7..be09568910 100644
--- a/ls-refs.c
+++ b/ls-refs.c
@@ -139,8 +139,7 @@ static int ls_refs_config(const char *var, const char *value, void *data)
return parse_hide_refs_config(var, value, "uploadpack");
}
-int ls_refs(struct repository *r, struct strvec *keys,
- struct packet_reader *request)
+int ls_refs(struct repository *r, struct packet_reader *request)
{
struct ls_refs_data data;