]> git.ipfire.org Git - thirdparty/git.git/commit
refs/files: remove useless indirection
authorPatrick Steinhardt <ps@pks.im>
Mon, 12 Jan 2026 09:02:53 +0000 (10:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2026 14:55:40 +0000 (06:55 -0800)
commit2fe33ae20fcce7a1e91cfeec37409d511ab8aefb
treeb12ef165a10985862cc2a2cfd820c43b40034a70
parent5a74903e62d7f4acdb2849103a2763b160a763b1
refs/files: remove useless indirection

The function `files_fsck_refs()` only has a single callsite and forwards
all of its arguments as-is, so it's basically a useless indirection.
Inline the function call.

While at it, also remove the bitwise or that we have for return values.
We don't really want to or them at all, but rather just want to return
an error in case either of the functions has failed.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c