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
git: remove is_bare_repository_cfg global variable
The is_bare_repository_cfg global variable is used for storing a bare
repository setting, either through the config, an env var, or the
commandline. This variable is global, and hence introduces global state
everywhere it is used.
In order to reduce global state, add a member to the repository struct
to keep track of the setting there. For now, the_repository is what's
used to set the member, which still represents global state. However,
there is a parallel effort to replace calls to the_repository with a
repository struct that is passed into builtins, see [1]. Hence, this
change will help the overall effort in reducing global state.
1. 9b1cb50 (builtin: add a repository parameter for builtin
functions, Fri Sep 13 21:16:14 2024 +0000)
Signed-off-by: John Cai <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
0 commit comments