]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport.h
The fifth batch
[thirdparty/git.git] / transport.h
index b5bf7b3e70418a9ded196bf124b1e445bc8076cb..6393cd9823c01f878000ded305cf621b2b526824 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef TRANSPORT_H
 #define TRANSPORT_H
 
-#include "cache.h"
 #include "run-command.h"
 #include "remote.h"
 #include "list-objects-filter-options.h"
@@ -62,6 +61,7 @@ enum transport_family {
        TRANSPORT_FAMILY_IPV6
 };
 
+struct bundle_list;
 struct transport {
        const struct transport_vtable *vtable;
 
@@ -76,6 +76,18 @@ struct transport {
         */
        unsigned got_remote_refs : 1;
 
+       /**
+        * Indicates whether we already called get_bundle_uri_list(); set by
+        * transport.c::transport_get_remote_bundle_uri().
+        */
+       unsigned got_remote_bundle_uri : 1;
+
+       /*
+        * The results of "command=bundle-uri", if both sides support
+        * the "bundle-uri" capability.
+        */
+       struct bundle_list *bundles;
+
        /*
         * Transports that call take-over destroys the data specific to
         * the transport type while doing so, and cannot be reused.
@@ -281,6 +293,12 @@ void transport_ls_refs_options_release(struct transport_ls_refs_options *opts);
 const struct ref *transport_get_remote_refs(struct transport *transport,
                                            struct transport_ls_refs_options *transport_options);
 
+/**
+ * Retrieve bundle URI(s) from a remote. Populates "struct
+ * transport"'s "bundle_uri" and "got_remote_bundle_uri".
+ */
+int transport_get_remote_bundle_uri(struct transport *transport);
+
 /*
  * Fetch the hash algorithm used by a remote.
  *