Re: [GSoC][PATCH v2 2/7] refs: set up ref consistency check infrastructure
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Jun 15, 2024, 14:50 UTC
- Message-ID
- <CAOLa=ZQtAOnD8kX4d5C0WKFOjqU9tgeWtHp-aXu+rDe3gmK4yA@mail.gmail.com>
- In-Reply-To
- <20240612085349.710785-3-shejialuo@gmail.com>
shejialuo <shejialuo@gmail.com> writes:
[snip]
Show 16 quoted lines
> 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]