]> git.ipfire.org Git - thirdparty/git.git/commit
refs API: ignore errno in worktree.c's add_head_info()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 16 Oct 2021 09:39:18 +0000 (11:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Oct 2021 18:17:03 +0000 (11:17 -0700)
commitccf3cc1b189f732cb1e99b08bda37e92a896047f
tree84cc8fe8107c623b65d579bc5efca7381e026652
parentac0986e302b9a94fd927e8d0a811fe6dc4d4c074
refs API: ignore errno in worktree.c's add_head_info()

The static add_head_info() function is only used indirectly by callers
of get_worktrees(), none of whom care about errno, and even if they
did having the faked-up one from refs_resolve_ref_unsafe() would only
confuse them if they used die_errno() et al. So let's explicitly
ignore it here.

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