]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport.h
t3428: restore coverage for "apply" backend
[thirdparty/git.git] / transport.h
index 12bc08fc33949a2caa7d95b0143f58751b899b77..85150f504fbfb9501109d297223f566cc36fe0e5 100644 (file)
@@ -62,6 +62,7 @@ enum transport_family {
        TRANSPORT_FAMILY_IPV6
 };
 
+struct bundle_list;
 struct transport {
        const struct transport_vtable *vtable;
 
@@ -76,6 +77,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.
@@ -145,6 +158,7 @@ struct transport {
 #define TRANSPORT_PUSH_OPTIONS                 (1<<14)
 #define TRANSPORT_RECURSE_SUBMODULES_ONLY      (1<<15)
 #define TRANSPORT_PUSH_FORCE_IF_INCLUDES       (1<<16)
+#define TRANSPORT_PUSH_AUTO_UPSTREAM           (1<<17)
 
 int transport_summary_width(const struct ref *refs);
 
@@ -280,6 +294,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.
  *