]> git.ipfire.org Git - thirdparty/git.git/commit
upload-pack: send part of packfile response as uri
authorJonathan Tan <jonathantanmy@google.com>
Wed, 10 Jun 2020 20:57:23 +0000 (13:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2020 01:06:34 +0000 (18:06 -0700)
commitdd4b732df73b06878b81fce050e7dcac4366a38e
tree7bfe19e33dc531f2eb0ef6fba249bcc819f772ed
parent9da69a6539e98da1b7ed8832cb54b494961463cb
upload-pack: send part of packfile response as uri

Teach upload-pack to send part of its packfile response as URIs.

An administrator may configure a repository with one or more
"uploadpack.blobpackfileuri" lines, each line containing an OID, a pack
hash, and a URI. A client may configure fetch.uriprotocols to be a
comma-separated list of protocols that it is willing to use to fetch
additional packfiles - this list will be sent to the server. Whenever an
object with one of those OIDs would appear in the packfile transmitted
by upload-pack, the server may exclude that object, and instead send the
URI. The client will then download the packs referred to by those URIs
before performing the connectivity check.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
fetch-pack.c
t/t5702-protocol-v2.sh
upload-pack.c