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
.gitconfigfile includes anincludeIfdirective, the config parser doesn't respect it.~/.gitconfigfile contents:~/.gitconfig.workcontentsChange to the
~/work/git/projectdirectory and rungit config -land 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
~/gitconfigfile, it will throwConfigParser.NoSectionError: No section: 'user'which is expected.Config parser should support the
includeIfdirective in the config file.