This moves the FETCH_HEAD handling into refs.c as discussed in https://public-inbox.org/git/xmqq5z9pav01.fsf@xxxxxxxxxxxxxxxxxxxxxx/ Han-Wen Nienhuys (4): Split off reading loose ref data in separate function refs: fix comment about submodule ref_stores refs: move gitdir into base ref_store refs: read FETCH_HEAD generically refs.c | 27 +++++++++++++++++++++++- refs/files-backend.c | 49 ++++++++++++++++++++++--------------------- refs/packed-backend.c | 1 + refs/refs-internal.h | 11 +++++++++- 4 files changed, 62 insertions(+), 26 deletions(-) base-commit: dc04167d378fb29d30e1647ff6ff51dd182bc9a3 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-705%2Fhanwen%2Ffetch-head-generically-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-705/hanwen/fetch-head-generically-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/705 -- gitgitgadget