Subject: Re: [Outreachy PATCH v7 2/3] environment: stop using core.sparseCheckout globally

From: Junio C Hamano <[email-masked]>
Date: Thu, 26 Feb 2026 07:23:41 -0800

Christian Couder <[email-masked]> writes:

> On Mon, Feb 16, 2026 at 5:39 PM Olamide Caleb Bello <[email-masked]> wrote:
>
>> @@ -670,7 +672,8 @@ static void clear_skip_worktree_from_present_files_full(struct index_state *ista
>>
>>  void clear_skip_worktree_from_present_files(struct index_state *istate)
>>  {
>> -       if (!core_apply_sparse_checkout ||
>> +       struct repo_config_values *cfg = repo_config_values(the_repository);
>
> Nit: it would be better with a blank line here.
>
>> +       if (!cfg->apply_sparse_checkout ||
>>             sparse_expect_files_outside_of_patterns)
>>                 return;

OK.  Agreed and locally amended.

Let's merge the topic down to 'next'.