transport: allow skipping of ref listing
commit99bcb883cb2bd2d27939a831a66d794770427e98
authorJonathan Tan <jonathantanmy@google.com>
Thu, 27 Sep 2018 19:24:04 +0000 (27 12:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Oct 2018 00:35:41 +0000 (7 09:35 +0900)
tree74ec100cc67e4b9e51951815520398ce820f3aee
parentf84b9b09d40408cf91bbc500d9f190a7866c3e0f
transport: allow skipping of ref listing

The get_refs_via_connect() function both performs the handshake
(including determining the protocol version) and obtaining the list of
remote refs. However, the fetch protocol v2 supports fetching objects
without the listing of refs, so make it possible for the user to skip
the listing by creating a new handshake() function. This will be used in
a subsequent commit.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c