Re: [PATCH v2 0/8] repo_config_values: migrate more globals
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Apr 14, 2026, 09:10 UTC
- Message-ID
- <CAOLa=ZQDXn7181VfHpcWtNOSjTh9nzM3YnDTG_X1Vqh_v64bwg@mail.gmail.com>
- In-Reply-To
- <20260324123750.157143-1-belkid98@gmail.com>
Olamide Caleb Bello <belkid98@gmail.com> writes:
Show 22 quoted lines
> Overview > ======== > This series continues the effort to migrate repository-specific global > variables into struct repo_config_values, further reducing global > state and improving repository isolation. > > The previous series introduced the infrastructure for storing > repository-dependent configuration in repo_config_values. This series > extends that work by moving additional environment-related globals into > that struct and updating their call sites accordingly. > > This helps avoid cross-repository interference when multiple > repositories are used within the same process, and continues preparing > Git for improved library usage and better encapsulation of repository > state. > > Changes since v1: > - Dropped "Base series" section as the dependency has been merged. > - Fixed handling of pack_compression_level: removed use of a local copy and > updated code to operate directly on cfg->pack_compression_level to avoid > inconsistencies with option parsing. >
I had a look at the series, the changes look good. I do think this is a nice opportunity to set some of the variables to be of type bool as needed. Apart from that, I'd like to see some more comments about each of the variables and improved commit messages talking about why this change is done this way.
Thanks, Karthik