summaryrefslogtreecommitdiff
path: root/transport-internal.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2019-08-21 15:20:10 -0700
committerJunio C Hamano <gitster@pobox.com>2019-08-22 14:20:39 -0700
commitfddf2ebe388f3a11013c14ebe012dee520caa9ff (patch)
tree1ce2dd316562c4b753502672883490137f966ca9 /transport-internal.h
parentac3fda82bfe1c9e99c5838d052c678c78139ee34 (diff)
downloadgit-fddf2ebe388f3a11013c14ebe012dee520caa9ff.tar.gz
transport: teach all vtables to allow fetch first
The only transport that does not allow fetch() to be called before get_refs_list() is the bundle transport. Clean up the code by teaching the bundle transport the ability to do this, and removing support for transports that don't support this order of invocation. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-internal.h')
-rw-r--r--transport-internal.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/transport-internal.h b/transport-internal.h
index 004bee5e36..1cde6258a7 100644
--- a/transport-internal.h
+++ b/transport-internal.h
@@ -7,12 +7,6 @@ struct argv_array;
struct transport_vtable {
/**
- * This transport supports the fetch() function being called
- * without get_refs_list() first being called.
- */
- unsigned fetch_without_list : 1;
-
- /**
* Returns 0 if successful, positive if the option is not
* recognized or is inapplicable, and negative if the option
* is applicable but the value is invalid.