summaryrefslogtreecommitdiff
path: root/t/t6300-for-each-ref.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-16 11:39:17 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-16 11:17:03 -0700
commitac0986e302b9a94fd927e8d0a811fe6dc4d4c074 (patch)
tree13abc51064994d27b3103d06b130267a3cd49419 /t/t6300-for-each-ref.sh
parentrefs API: make loose_fill_ref_dir() not set errno (diff)
downloadtgif-ac0986e302b9a94fd927e8d0a811fe6dc4d4c074.tar.xz
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>
Diffstat (limited to 't/t6300-for-each-ref.sh')
0 files changed, 0 insertions, 0 deletions