Re: [Outreachy PATCH v5 0/3] store repo specific config values in new `struct repo_config_values`
- From
Bello Olamide <belkid98@gmail.com>
- Date
- Jan 29, 2026, 08:29 UTC
- Message-ID
- <CAD=f0L_5E+FsnxKOCnFt_Rot9FJ8aP3hzeLTHKEqWD312QJ9kw@mail.gmail.com>
- In-Reply-To
- <cover.1769256839.git.belkid98@gmail.com>
On Sat, 24 Jan 2026 at 13:21, Olamide Caleb Bello <belkid98@gmail.com> wrote:
Show 34 quoted lines
> > Hi Git Community, > Over the course of my ongoing internship, which focused on moving repo specific > global variables in environment.h into local scope, I have attempted to move some > variables into the struct repo-settings. > However there has been some design concerns as regards the use of > `prepare_repo_settings()` with respect to when and where to call the > function, and also the change in behaviours when the variable is lazily > loaded as discussed in [1] and [2]. > > After different deliberations, Phillip Wood proposed creating a new config > struct [3], adding it to the repository struct and passing the repo struct to > `git_default_config()` to store parsed repo specific config values per repo. > This ensures the current behaviours will be retained. > > I have experimented with this approach for some values and I would > appreciate feedbacks about this approach before we can move forward > and use it for more variables related to `git_default_config()`. > > For now, the parsed value is stored in `the_repository` in > `git_default_*_config()` and further efforts to pass the repository > parameter to `git_default_config()` as the callback parameter will > be looked into later on. > The link to the CI tests can be see in [4] > > 1. https://lore.kernel.org/git/43aaec10-2696-44c9-8728-2045b83dc5d3@gmail.com/ > 2. https://lore.kernel.org/git/a881499d-e236-4f8e-a217-b6bce69e3e3c@gmail.com/ > 3. https://lore.kernel.org/git/8899016f-eeef-404b-8da6-ff3a90e81cea@gmail.com/ > 4. https://gitlab.com/gitlab-community/gitlab-org/git/-/pipelines/2266020513 > > Changes in v5: > ============== > - Corrected mistake in commit message of patch 3 which spelt branch > wrongly in `branch.autoSetupmerge`
Hello, Just a gentle nudge for a review Thanks