Open Svenito opened 4 years ago
Thanks for the summary!
As the implementation does support include directives already, at least in theory that should provide the necessary infrastructure to add support for conditional includes.
Here is the a link to the git documentation in case anyone wants to give it a try.
@Byron I just submitted a PR: #1054
Let me know if I missed anything!
If the
.gitconfig
file includes anincludeIf
directive, the config parser doesn't respect it.~/.gitconfig
file contents:~/.gitconfig.work
contentsChange to the
~/work/git/project
directory and rungit config -l
and notice that the name is set toWork
. Running the following in a Python REPLAnd if the user hasn't got a default user setting in the
~/gitconfig
file, it will throwConfigParser.NoSectionError: No section: 'user'
which is expected.Config parser should support the
includeIf
directive in the config file.