diff options
author | Brandon Williams <bmwill@google.com> | 2018-06-27 15:30:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-28 09:33:29 -0700 |
commit | 989b8c4452f63f415c276df348defce6df613696 (patch) | |
tree | 029de07c0156624befefe59adc7dfdf569f1c264 /fetch-object.c | |
parent | 6d1700d564bbd3ecfe11f9889ed3f35a118b9f6a (diff) | |
download | git-989b8c4452f63f415c276df348defce6df613696.tar.gz |
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>
Diffstat (limited to 'fetch-object.c')
-rw-r--r-- | fetch-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-object.c b/fetch-object.c index 853624f811..48fe63dd6c 100644 --- a/fetch-object.c +++ b/fetch-object.c @@ -19,7 +19,7 @@ static void fetch_refs(const char *remote_name, struct ref *ref) transport_set_option(transport, TRANS_OPT_FROM_PROMISOR, "1"); transport_set_option(transport, TRANS_OPT_NO_DEPENDENTS, "1"); - transport_fetch_refs(transport, ref); + transport_fetch_refs(transport, ref, NULL); fetch_if_missing = original_fetch_if_missing; } |