Subject: Re: [GSOC PATCH 0/2] preload-index: remove dependency on global variables and 'the_repository'

From: Junio C Hamano <[email-masked]>
Date: Tue, 10 Jun 2025 10:11:55 -0700

Ayush Chandekar <[email-masked]> writes:

> The aim of this patch series is to remove the definition '#define
> USE_THE_REPOSITORY_VARIABLE' from "preload-index.c" by removing
> global variables and the global 'the_repository'.
>
> This patch series contains two patches:
>
> 1 - Remove the global variable 'core_preload_index' and localize
> it in the function which calls it.
>
> 2 - Remove the dependency of 'the_repository' in
> "preload-index.c", allowing the removal of the definition.
>
> Removing these global variables is part of my GSoC project.

Both patches are pretty straight-forward and readable.  Will queue.  Thanks.