]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable: introduce generic checks for refs
authorPatrick Steinhardt <ps@pks.im>
Mon, 12 Jan 2026 09:03:03 +0000 (10:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2026 14:55:41 +0000 (06:55 -0800)
commit06d6ead762ba525c5837812e7f509406253cdacd
tree7ec46b89b25596e09f772257008bc474868916f6
parent9341740bea2ce334be412835fdcc0dd31550071a
refs/reftable: introduce generic checks for refs

In a preceding commit we have extracted generic checks for both direct
and symbolic refs that apply for all backends. Wire up those checks for
the "reftable" backend.

Note that this is done by iterating through all refs manually with the
low-level reftable ref iterator. We explicitly don't want to use the
higher-level iterator that is exposed to users of the reftable backend
as that iterator may swallow for example broken refs.

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