]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
transport: rename "fetch" in transport_vtable to "fetch_refs"
[thirdparty/git.git] / transport-helper.c
index 4be035edb8b7c6d618b4dc78ea5de203a2831391..8d445a8f3ee38bb835bfa84eb834727fbee8b375 100644 (file)
@@ -671,8 +671,8 @@ static int connect_helper(struct transport *transport, const char *name,
 static struct ref *get_refs_list_using_list(struct transport *transport,
                                            int for_push);
 
-static int fetch(struct transport *transport,
-                int nr_heads, struct ref **to_fetch)
+static int fetch_refs(struct transport *transport,
+                     int nr_heads, struct ref **to_fetch)
 {
        struct helper_data *data = transport->data;
        int i, count;
@@ -681,7 +681,7 @@ static int fetch(struct transport *transport,
 
        if (process_connect(transport, 0)) {
                do_take_over(transport);
-               return transport->vtable->fetch(transport, nr_heads, to_fetch);
+               return transport->vtable->fetch_refs(transport, nr_heads, to_fetch);
        }
 
        /*
@@ -1263,7 +1263,7 @@ static struct ref *get_refs_list_using_list(struct transport *transport,
 static struct transport_vtable vtable = {
        set_helper_option,
        get_refs_list,
-       fetch,
+       fetch_refs,
        push_refs,
        connect_helper,
        release_helper