summaryrefslogtreecommitdiff
path: root/serve.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-04-23 22:46:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-24 02:24:40 (GMT)
commitecc3e5342de203fa2d84c4a49a46aaa87289534b (patch)
treed45eb1da65af81dc7fbbf4613e39a7fadfc8b6d7 /serve.c
parentbbc39d4020372a0bf8aa399c7550ba58312adfa1 (diff)
downloadgit-ecc3e5342de203fa2d84c4a49a46aaa87289534b.zip
git-ecc3e5342de203fa2d84c4a49a46aaa87289534b.tar.gz
git-ecc3e5342de203fa2d84c4a49a46aaa87289534b.tar.bz2
serve: introduce the server-option capability
Introduce the "server-option" capability to protocol version 2. This enables future clients the ability to send server specific options in command requests when using protocol version 2. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'serve.c')
-rw-r--r--serve.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/serve.c b/serve.c
index a5a7b2f..bda085f 100644
--- a/serve.c
+++ b/serve.c
@@ -56,6 +56,7 @@ static struct protocol_capability capabilities[] = {
{ "agent", agent_advertise, NULL },
{ "ls-refs", always_advertise, ls_refs },
{ "fetch", upload_pack_advertise, upload_pack_v2 },
+ { "server-option", always_advertise, NULL },
};
static void advertise_capabilities(void)