Subject: Re: [Outreachy PATCH v2] environment: move "core.attributesFile" into repo-setting

From: Junio C Hamano <[email-masked]>
Date: Tue, 06 Jan 2026 07:28:25 +0900

Phillip Wood <[email-masked]> writes:

> On 05/01/2026 14:23, Phillip Wood wrote:
>> 
>> It is quite common that moving from parsing config settings eagerly by 
>> calling repo_config() at startup to parsing them lazily via 'stuct 
>> repo_settings' causes regressions like this. We really should find a way 
>> to address that before moving more settings into 'struct repo_settings'
>
> See 
> https://lore.kernel.org/git/[email-masked] 
> for some discussion about a possible solution.

Nice, but I suspect it would be an improvement already without
passing repository instance via git_default_config() and instead
have the code use the_repository; it is even possible not to have
any repository when the callchain executes.