You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The config values parsed in `git_default_config()` are loaded eagerly
and stored in global variables. Storing these values in global variables
can lead to unexpected behaviours when more than one Git repository run
in the same Git process.
Move these values into a `struct config_values` which can be accessed per
repository. This centralization will be important in moving other
variables and this will prevent us from moving any code from
`git_default_config()`, ensuring the current behaviour remains the same
while also enabling the libification of Git.
It is important to note that `git_default_config()` is a wrapper to other
`git_default_*_config()` such as `git_default_core_config()`.
Therefore to access and substitute some of these global variables,
the change has to be made in the functions themselves which parse and
store the values in the global variables.
This commit consolidates the variables `git_attributes_file` and
`core_apply_sparse_checkout` as an initial effort for subsequent
relocations.
Suggested-by: Phillip Wood <phillip.wood123@gmail.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Olamide Caleb Bello <belkid98@gmail.com>
0 commit comments