fetch: refactor fetch refs to be more extendable
commit284b2ce8fcb100e7194b9cca6d9b99bca7da39b6
authorPatrick Steinhardt <ps@pks.im>
Wed, 1 Sep 2021 13:09:58 +0000 (1 15:09 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Sep 2021 19:43:56 +0000 (1 12:43 -0700)
tree973df7751cc3dd912dc00e69f3edd90b60ae6912
parent62b5a35a33ad6a4537e2ae75a49036e4173fcc87
fetch: refactor fetch refs to be more extendable

Refactor `fetch_refs()` code to make it more extendable by explicitly
handling error cases. The refactored code should behave the same.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c