git/odb
Patrick Steinhardt 0d5ebb323b builtin/fsck: move loose object verification into the loose source
The consistency checks for loose objects are hosted by "builtin/fsck.c".
These checks are obviously specific to the "loose" backend.

Move the logic into `odb_source_loose_fsck()`. Introduce a new "verbose"
flag so that we can properly retain semantics around whether or not we
want to print some status messages.

Note that this fixes a bug as a side effect: the progress meter was
captured in the callback data before `start_progress()` was even called,
so the per-subdirectory progress updates always operated on a NULL
pointer and the meter jumped straight from 0 to 256 upon completion. The
new code only sets up the callback data's progress meter after it has
been created, so the progress display now advances incrementally again.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-09-11 09:14:44 -07:00
..
source-files.c odb: provide infrastructure for pluggable fsck checks 2026-09-11 09:14:44 -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-09-11 09:14:44 -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 builtin/fsck: move loose object verification into the loose source 2026-09-11 09:14:44 -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 multi-pack index verification into the packed source 2026-09-11 09:14:44 -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-09-11 09:14:44 -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