From: Karthik Nayak Date: Sat, 15 Jun 2024 14:50:05 GMT Subject: Re: [GSoC][PATCH v2 2/7] refs: set up ref consistency check infrastructure Message-ID: In-Reply-To: <20240612085349.710785-3-shejialuo@gmail.com> shejialuo writes: [snip] > diff --git a/refs/debug.c b/refs/debug.c > index 547d9245b9..110a264522 100644 > --- a/refs/debug.c > +++ b/refs/debug.c > @@ -419,6 +419,13 @@ static int debug_reflog_expire(struct ref_store *ref_store, const char *refname, > return res; > } > > +static int debug_fsck(struct ref_store *ref_store, > + struct fsck_refs_options *o) > +{ > + trace_printf_key(&trace_refs, "fsck\n"); > + return 0; > +} > + > The debug interface acts as a wrapper around the actual refs backend being used, as such, you need to still call the underlying backend here. [snip]