read_loose_refs(): simplify function logic
commitf5517074f8f5cecc773b2ff927be4a059f2c9db0
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 3 Jun 2015 13:51:58 +0000 (3 15:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Jun 2015 18:44:25 +0000 (3 11:44 -0700)
treeeeb57f600f2713cbf0042b40beaa90eb57767d95
parent8afc493d115e35092be8de3a441317f175928ab5
read_loose_refs(): simplify function logic

Make it clearer that there are two possible ways to read the
reference, but that we handle read errors uniformly regardless of
which way it was read.

This refactoring also makes the following change easier to implement.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c