Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-08-05 04:25:34 +0300
committerJunio C Hamano <gitster@pobox.com>2021-08-05 18:59:36 +0300
commiteacf36a4d1d6e83418c02f61e0c418d049000240 (patch)
treecb7ed11f3135db146668e911e9512766120a4bdf /serve.h
parente5a14ddd2d93da4d951fd63d4f78fe2410debe68 (diff)
serve: mark has_capability() as static
The has_capability() function introduced in ed10cb952d3 (serve: introduce git-serve, 2018-03-15) has never been used anywhere except serve.c, so let's mark it as static. It was later changed from "extern" in 554544276a6 (*.[ch]: remove extern from function declarations using spatch, 2019-04-29), but we could have simply marked it as "static" instead. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'serve.h')
-rw-r--r--serve.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/serve.h b/serve.h
index fc2683e24d..56da77a87a 100644
--- a/serve.h
+++ b/serve.h
@@ -1,10 +1,6 @@
#ifndef SERVE_H
#define SERVE_H
-struct strvec;
-int has_capability(const struct strvec *keys, const char *capability,
- const char **value);
-
struct serve_options {
unsigned advertise_capabilities;
unsigned stateless_rpc;