]> git.ipfire.org Git - thirdparty/git.git/commit - connect.c
connect: add function to fetch value of a v2 server capability
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 25 May 2020 19:58:53 +0000 (19:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2020 17:07:06 +0000 (10:07 -0700)
commit1349ffed6dfa8ddcf9f48ede3b9cfd16fdde16fc
treefe70306528f6b06e38caf41274d38aab65db4d49
parent2c6a403d96cd5d31f1638679502f06e2b953647f
connect: add function to fetch value of a v2 server capability

So far in protocol v2, all of our server capabilities that have values
have not had values that we've been interested in parsing.  For example,
we receive but ignore the agent value.

However, in a future commit, we're going to want to parse out the value
of a server capability.  To make this easy, add a function,
server_feature_v2, that can fetch the value provided as part of the
server capability.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c
connect.h