]> Kevux Git Server - rit/commit
fsck: store repository in fsck options
authorPatrick Steinhardt <ps@pks.im>
Mon, 23 Mar 2026 15:02:54 +0000 (16:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 15:33:10 +0000 (08:33 -0700)
commit374985390871cb67c02b1608b693480e89567b9a
treee8738aebd1a1192a4c9862f6eebeb816c6f28296
parentf22360902621e0807a1c0a77476e3e4d323c708d
fsck: store repository in fsck options

The fsck subsystem relies on `the_repository` quite a bit. While we
could of course explicitly pass a repository down the callchain, we
already have a `struct fsck_options` that we pass to almost all
functions.

Extend the options to also store the repository to make it readily
available.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c
builtin/index-pack.c
builtin/mktag.c
builtin/refs.c
builtin/unpack-objects.c
fetch-pack.c
fsck.c
fsck.h
object-file.c