Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConfig reader does not support includeIf #1053
Open
Labels
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.