refs API: make refs_ref_exists() not set errno
commit1e3ccb552f3d9166009ca2bc40b27bbc0c0e2b78
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 16 Oct 2021 09:39:22 +0000 (16 11:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Oct 2021 18:17:04 +0000 (16 11:17 -0700)
tree598cbb7368a5626ded258ecf47df278c979ee5e4
parentf65bb9fb06f969e8fb89de2d6dc9218f13cb361c
refs API: make refs_ref_exists() not set errno

Move refs_ref_exists from the legacy refs_resolve_ref_unsafe() to the
new refs_werrres_ref_unsafe(). I have read its callers and determined
that they don't care about errno being set, in particular:

    git grep -W -w -e refs_ref_exists -e ref_exists

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c