]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs API: make expand_ref() & repo_dwim_log() not set errno
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 16 Oct 2021 09:39:24 +0000 (11:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Oct 2021 18:17:04 +0000 (11:17 -0700)
commit6582bd31e3f3fa6cfb16fae0cd31036081c14a0a
treeae9d9ca40d1c3808418e70680955a2df6b70f6de
parented90f04155df1ec757b241ae3f45889c05efae26
refs API: make expand_ref() & repo_dwim_log() not set errno

The use of these two is rather trivial, and it's easy to see none of
their callers care about errno. So let's move them from
refs_resolve_ref_unsafe() to refs_resolve_ref_unsafe_with_errno(),
these were the last two callers, so we can get rid of that wrapper
function.

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