refs: read FETCH_HEAD and MERGE_HEAD generically
authorHan-Wen Nienhuys <hanwen@google.com>
Wed, 19 Aug 2020 14:27:58 +0000 (14:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Aug 2020 21:08:04 +0000 (14:08 -0700)
commite81153027857b0b0ed3dfa6a544df2beeac0cfce
tree91fb5e685935049d41bc0be408b27e2b33285f68
parent5085aef4c8e569e5d688d9f35790a2ca2c2f4c11
refs: read FETCH_HEAD and MERGE_HEAD generically

The FETCH_HEAD and MERGE_HEAD refs must be stored in a file, regardless of the
type of ref backend. This is because they can hold more than just a single ref.

To accomodate them for alternate ref backends, read them from a file generically
in refs_read_raw_ref()

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c