fetch: refactor to make function args narrower
authorBrandon Williams <redacted>
Wed, 27 Jun 2018 22:30:21 +0000 (15:30 -0700)
committerJunio C Hamano <redacted>
Thu, 28 Jun 2018 16:33:29 +0000 (09:33 -0700)
commit6d1700d564bbd3ecfe11f9889ed3f35a118b9f6a
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/fetch.c
git clone https://git.99rst.org/PROJECT