Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorDerrick Stolee <derrickstolee@github.com>2022-05-16 23:11:02 +0300
committerJunio C Hamano <gitster@pobox.com>2022-05-17 01:02:09 +0300
commitc1d024b84378d099f6ff9bb74e442d17587f3081 (patch)
treed4ddbfd69731223b08155f1d7d7cf2077c2edad3 /http.c
parent1f6cf4508ed554b473bb1e5cf89df18f617fe2a2 (diff)
http: make http_get_file() external
This method will be used in an upcoming extension of git-remote-curl to download a single file over HTTP(S) by request. Signed-off-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
-rw-r--r--http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http.c b/http.c
index 229da4d148..04e7314935 100644
--- a/http.c
+++ b/http.c
@@ -1945,8 +1945,8 @@ int http_get_strbuf(const char *url,
* If a previous interrupted download is detected (i.e. a previous temporary
* file is still around) the download is resumed.
*/
-static int http_get_file(const char *url, const char *filename,
- struct http_get_options *options)
+int http_get_file(const char *url, const char *filename,
+ struct http_get_options *options)
{
int ret;
struct strbuf tmpfile = STRBUF_INIT;