mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
ac3fda82bf
commit
fddf2ebe38
@@ -6,12 +6,6 @@ struct transport;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user