git/odb
Patrick Steinhardt af061ff199 builtin/fsck: move packfile verification into the packed source
Move the packfile verification out of `cmd_fsck()` and into the "packed"
source. While doing so, thread the progress meter and object callback
through the newly introduced `struct odb_fsck_options` so that the
caller's preferences are honoured without exposing those details at the
"builtin/fsck.c" level.

Note that the old code reported failures when verifying packfiles with
the `ERROR_PACK` bit, which gets returned to the caller via the exit
code. This bit is neither exercised in our test suite nor is it
documented anywhere in our codebase. Furthermore, this bit is highly
specific to the object storage backend, which makes it a bad fit for the
new pluggable infrastructure. So instead of retaining these semantics,
we drop them and return the generic `ERROR_OBJECT` bit.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-08-31 07:52:48 -07:00
..
source-files.c odb: provide infrastructure for pluggable fsck checks 2026-08-31 07:52:48 -07:00
source-files.h Merge branch 'ps/odb-make-creation-pluggable' 2026-08-20 07:30:52 -07:00
source-inmemory.c odb: provide infrastructure for pluggable fsck checks 2026-08-31 07:52:48 -07:00
source-inmemory.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source-loose.c odb: provide infrastructure for pluggable fsck checks 2026-08-31 07:52:48 -07:00
source-loose.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source-packed.c builtin/fsck: move packfile verification into the packed source 2026-08-31 07:52:48 -07:00
source-packed.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.c odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.h odb: provide infrastructure for pluggable fsck checks 2026-08-31 07:52:48 -07:00
streaming.c Merge branch 'ps/odb-eagerly-load-alternates' into ps/odb-pluggable-fsck 2026-08-25 18:07:31 -07:00
streaming.h odb/streaming: unify function names to create new streams 2026-08-05 09:42:50 -07:00
transaction.c odb/streaming: consolidate read and write streams 2026-08-05 09:42:50 -07:00
transaction.h odb/streaming: consolidate read and write streams 2026-08-05 09:42:50 -07:00