Merge branch 'jt/avoid-ls-refs'
commit0527fbab689929de47ab3fa7baf1e7618ffa704f
authorJunio C Hamano <gitster@pobox.com>
Fri, 19 Oct 2018 04:34:07 +0000 (19 13:34 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Oct 2018 04:34:07 +0000 (19 13:34 +0900)
tree225a1b7916ff4b81f30d661f0014f973eea38642
parentd4cd2dd214c9800c8ccf45cf413acc727f4abcc2
parente70a3030e747312327a4f3619247bf8a986aa577
Merge branch 'jt/avoid-ls-refs'

Over some transports, fetching objects with an exact commit object
name can be done without first seeing the ref advertisements.  The
code has been optimized to exploit this.

* jt/avoid-ls-refs:
  fetch: do not list refs if fetching only hashes
  transport: list refs before fetch if necessary
  transport: do not list refs if possible
  transport: allow skipping of ref listing
builtin/fetch.c
fetch-pack.c
t/t5551-http-fetch-smart.sh
t/t5702-protocol-v2.sh
transport.c