fetch: refactor to make function args narrower
commit6d1700d564bbd3ecfe11f9889ed3f35a118b9f6a
authorBrandon Williams <bmwill@google.com>
Wed, 27 Jun 2018 22:30:21 +0000 (27 15:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2018 16:33:29 +0000 (28 09:33 -0700)
tree33415d7d0f41366fd44b44c1d00b6596026b9b96
parent05c4422676f6e854aff0277984f4eadcd8912d56
fetch: refactor to make function args narrower

Refactor find_non_local_tags and get_ref_map to only take the
information they need instead of the entire transport struct. Besides
improving code clarity, this also improves their flexibility, allowing
for a different set of refs to be used instead of relying on the ones
stored in the transport struct.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c