]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http.h
Sync with 2.36.5
[thirdparty/git.git] / http.h
diff --git a/http.h b/http.h
index 77e0520582dfc94af8d0eeb875355e6dfb09b524..fc6723ebd5bee485073a8425ace40c7e567fa442 100644 (file)
--- a/http.h
+++ b/http.h
@@ -163,6 +163,15 @@ struct http_get_options {
  */
 int http_get_strbuf(const char *url, struct strbuf *result, struct http_get_options *options);
 
+/*
+ * Downloads a URL and stores the result in the given file.
+ *
+ * If a previous interrupted download is detected (i.e. a previous temporary
+ * file is still around) the download is resumed.
+ */
+int http_get_file(const char *url, const char *filename,
+                 struct http_get_options *options);
+
 int http_fetch_ref(const char *base, struct ref *ref);
 
 /* Helpers for fetching packs */