]> git.ipfire.org Git - thirdparty/git.git/commit
refs API: make refs_read_raw_ref() not set errno
authorHan-Wen Nienhuys <hanwen@google.com>
Sat, 16 Oct 2021 09:39:09 +0000 (11:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Oct 2021 18:17:02 +0000 (11:17 -0700)
commit8b72fea7e91b5900c3a35891df1d8ea16d4b2bee
tree5d0c064a0a876640d0c6754858ae7b03bd77a056
parentef18119dec8a9c65ed545fdd60c7ae9a6bc31f6f
refs API: make refs_read_raw_ref() not set errno

Add a "failure_errno" to refs_read_raw_ref(), his allows
refs_werrres_ref_unsafe() to pass along its "failure_errno", as a
first step before its own callers are migrated to pass it further up
the chain.

We are leaving out out the refs_read_special_head() in
refs_read_raw_ref() for now, as noted in a subsequent commit moving it
to "failure_errno" will require some special consideration.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h