]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-internal.h
clone: request the 'bundle-uri' command when available
[thirdparty/git.git] / transport-internal.h
index c4ca0b733acbdbe7fc7a5906490e396240ec7b06..90ea749e5cfbf7de994a8747186ad5fb3ae7c653 100644 (file)
@@ -26,6 +26,13 @@ struct transport_vtable {
        struct ref *(*get_refs_list)(struct transport *transport, int for_push,
                                     struct transport_ls_refs_options *transport_options);
 
+       /**
+        * Populates the remote side's bundle-uri under protocol v2,
+        * if the "bundle-uri" capability was advertised. Returns 0 if
+        * OK, negative values on error.
+        */
+       int (*get_bundle_uri)(struct transport *transport);
+
        /**
         * Fetch the objects for the given refs. Note that this gets
         * an array, and should ignore the list structure.