transport: convert transport_get_remote_refs to take a list of ref prefixes
[gitweb.git] / transport.c
index 2e68010dd05d729415a9cb9da3a532755335d565..3f130518d2ba79a1f7ba9d96c0db04f6b97e50c8 100644 (file)
@@ -1138,10 +1138,13 @@ int transport_push(struct transport *transport,
        return 1;
 }
 
-const struct ref *transport_get_remote_refs(struct transport *transport)
+const struct ref *transport_get_remote_refs(struct transport *transport,
+                                           const struct argv_array *ref_prefixes)
 {
        if (!transport->got_remote_refs) {
-               transport->remote_refs = transport->vtable->get_refs_list(transport, 0, NULL);
+               transport->remote_refs =
+                       transport->vtable->get_refs_list(transport, 0,
+                                                        ref_prefixes);
                transport->got_remote_refs = 1;
        }