]> git.ipfire.org Git - thirdparty/git.git/commit
remote-curl: add 'get' capability
authorDerrick Stolee <derrickstolee@github.com>
Tue, 9 Aug 2022 13:11:39 +0000 (13:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Aug 2022 21:07:37 +0000 (14:07 -0700)
commitb5624a44744d6e5f9c749e4df02932c724e2097e
tree550bb596d7bb2c39621d2d99aa7d7007b98a203b
parent6a475b71f8c4ce708d69fdc9317aefbde3769e25
remote-curl: add 'get' capability

A future change will want a way to download a file over HTTP(S) using
the simplest of download mechanisms. We do not want to assume that the
server on the other side understands anything about the Git protocol but
could be a simple static web server.

Create the new 'get' capability for the remote helpers which advertises
that the 'get' command is avalable. A caller can send a line containing
'get <url> <path>' to download the file at <url> into the file at
<path>.

Reviewed-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitremote-helpers.txt
remote-curl.c
t/t5557-http-get.sh [new file with mode: 0755]