git/refs
Ævar Arnfjörð Bjarmason ac0986e302 refs API: make files_copy_or_rename_ref() et al not set errno
None of the callers of rename_ref() and copy_ref() care about errno,
and as seen in the context here we already emit our own non-errno
using error() in the case where we'd use it.

So let's have it explicitly ignore errno, and do the same in
commit_ref_update(), which is only used within other code in
files_copy_or_rename_ref() itself which doesn't care about errno
either.

It might actually be sensible to have the callers use errno if the
failure was filesystem-specific, and with the upcoming reftable
backend we don't want to rely on that sort of thing, so let's keep
ignoring that for now.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-10-16 11:17:03 -07:00
..
debug.c Merge branch 'hn/refs-errno-cleanup' 2021-10-03 21:49:18 -07:00
files-backend.c refs API: make files_copy_or_rename_ref() et al not set errno 2021-10-16 11:17:03 -07:00
iterator.c use CALLOC_ARRAY 2021-03-13 16:00:09 -08:00
packed-backend.c refs API: make refs_read_raw_ref() not set errno 2021-10-16 11:17:02 -07:00
packed-backend.h refs/packed-backend.h: add missing declaration (hdr-check) 2018-09-20 11:50:00 -07:00
ref-cache.c refs/ref-cache.[ch]: remove "incomplete" from create_dir_entry() 2021-09-28 15:12:04 -07:00
ref-cache.h refs/ref-cache.[ch]: remove "incomplete" from create_dir_entry() 2021-09-28 15:12:04 -07:00
refs-internal.h refs API: make refs_rename_ref_available() static 2021-10-16 11:17:02 -07:00