bundle-uri: serve bundle.* keys from config
commit738dc7d4a5f42376bc748008dd8792aa4eb25627
authorDerrick Stolee <derrickstolee@github.com>
Thu, 22 Dec 2022 15:14:13 +0000 (22 15:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Dec 2022 07:24:24 +0000 (25 16:24 +0900)
treedadfd9fcff14ad1bc1fe4ba6876c97774664682c
parent70b9c1037325ee82bc0832f4ca2d30c6ebf4808e
bundle-uri: serve bundle.* keys from config

Implement the "bundle-uri" protocol v2 capability by populating the
key=value packet lines from the local Git config. The list of bundles is
provided from the keys beginning with "bundle.".

In the future, we may want to filter this list to be more specific to
the exact known keys that the server intends to share, but for
flexibility at the moment we will assume that the config values are
well-formed.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle-uri.c
t/lib-bundle-uri-protocol.sh