summaryrefslogtreecommitdiff
path: root/transport-internal.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-08-05 03:25:35 +0200
committerJunio C Hamano <gitster@pobox.com>2021-08-05 08:59:36 -0700
commit9b1cdd334d458a063dd43058fca551b7ab57e333 (patch)
treecf3e5d6781b876a68ed7e49661bb354d32af3e78 /transport-internal.h
parenteacf36a4d1d6e83418c02f61e0c418d049000240 (diff)
downloadgit-9b1cdd334d458a063dd43058fca551b7ab57e333.tar.gz
transport: rename "fetch" in transport_vtable to "fetch_refs"
Rename the "fetch" member of the transport_vtable to "fetch_refs" for consistency with the existing "push_refs". Neither of them just push "refs" but refs and objects, but having the two match makes the code more readable than having it be inconsistent, especially since "fetch_refs" is a lot easier to grep for than "fetch". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-internal.h')
-rw-r--r--transport-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport-internal.h b/transport-internal.h
index b60f1ba907..c4ca0b733a 100644
--- a/transport-internal.h
+++ b/transport-internal.h
@@ -34,7 +34,7 @@ struct transport_vtable {
* get_refs_list(), it should set the old_sha1 fields in the
* provided refs now.
**/
- int (*fetch)(struct transport *transport, int refs_nr, struct ref **refs);
+ int (*fetch_refs)(struct transport *transport, int refs_nr, struct ref **refs);
/**
* Push the objects and refs. Send the necessary objects, and