[PATCH 00/10] odb: make consistency checks pluggable
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Aug 25, 2026, 14:30 UTC
- Message-ID
- <20260825-pks-odb-source-fsck-v1-0-b756de0bf24f@pks.im>
Hi,
this patch series makes object database consistency checks pluggable.
This series is built on top of 2c3adbb2c4 (The 18th batch, 2026-08-24) with the following two dependencsie merged into it:
- ps/odb-eagerly-load-alternates at 0076dc9f81 (odb: drop
`alternates_db` field, 2026-08-17) - ps/odb-pluggable-pack-generation at 5176dd3d05 (bundle: generate
packfiles via the object database, 2026-08-21)Thanks!
Patrick
---
Patrick Steinhardt (10):
builtin/fsck: use `fsck_obj_buffer()` when checking loose objects
builtin/fsck: merge `fsck_obj_buffer()` and `fsck_obj()`
builtin/fsck: de-globalize option handling
builtin/fsck: don't check alternates with "--no-full"
odb: provide infrastructure for pluggable fsck checks
builtin/fsck: move packfile verification into the packed source
builtin/fsck: move reverse index verification into the packed source
builtin/fsck: move bitmap verification into the packed source
builtin/fsck: move multi-pack index verification into the packed source
builtin/fsck: move loose object verification into the loose sourcebuiltin/fsck.c | 296 ++++++++---------------------------------- odb.c | 9 ++ odb.h | 33 +++++ odb/source-files.c | 13 ++ odb/source-inmemory.c | 8 ++ odb/source-loose.c | 92 +++++++++++++ odb/source-packed.c | 117 +++++++++++++++++ odb/source.h | 21 +++ pack-bitmap.c | 26 ++-- pack-bitmap.h | 2 +- t/t1450-fsck.sh | 5 + t/t5319-multi-pack-index.sh | 13 ++ t/t5325-reverse-index.sh | 8 ++ t/t5326-multi-pack-bitmaps.sh | 10 +- 14 files changed, 394 insertions(+), 259 deletions(-)
--- base-commit: 6b08999fb1b3ad0bad04d492dc206ad42839e274 change-id: 20260810-pks-odb-source-fsck-e64772c7ee5f