fetch-pack: put shallow info in output parameter
authorBrandon Williams <bmwill@google.com>
Wed, 27 Jun 2018 22:30:22 +0000 (15:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2018 16:33:29 +0000 (09:33 -0700)
commit989b8c4452f63f415c276df348defce6df613696
tree029de07c0156624befefe59adc7dfdf569f1c264
parent6d1700d564bbd3ecfe11f9889ed3f35a118b9f6a
fetch-pack: put shallow info in output parameter

Expand the transport fetch method signature, by adding an output
parameter, to allow transports to return information about the refs they
have fetched.  Then communicate shallow status information through this
mechanism instead of by modifying the input list of refs.

This does require clients to sometimes generate the ref map twice: once
from the list of refs provided by the remote (as is currently done) and
potentially once from the new list of refs that the fetch mechanism
provides.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/fetch.c
fetch-object.c
fetch-pack.c
transport-helper.c
transport-internal.h
transport.c
transport.h