[PATCH v2 0/3] config: allow overriding global/system config
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Apr 9, 2021, 13:43 UTC
- Message-ID
- <cover.1617975637.git.ps@pks.im>
- In-Reply-To
- <a23382059bb57022dd1e40d1c2c9a11307b0ff3b.1617891426.git.ps@pks.im>
Hi,
this is the second version of my patch series to provide a way of overriding the global system configuration.
Instead of going for GIT_CONFIG_NOGLOBAL, I've adopted Junio's proposal of going with GIT_CONFIG_GLOBAL and GIT_CONFIG_SYSTEM, which allow a user to modify the locations of those files. Thanks for the discussion, this solution feels a lot nicer to me!
Patrick
Patrick Steinhardt (3): config: rename `git_etc_config()` config: unify code paths to get global config paths config: allow overriding of global and system configuration
Documentation/git-config.txt | 5 +++ Documentation/git.txt | 10 +++++ builtin/config.c | 8 ++-- config.c | 56 ++++++++++++++++++++++----- config.h | 4 +- t/t1300-config.sh | 75 ++++++++++++++++++++++++++++++++++++ 6 files changed, 143 insertions(+), 15 deletions(-)
-- 2.31.1