Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Include in gitconfig #9

Open
kwin opened this issue Dec 23, 2023 · 2 comments
Open

Conditional Include in gitconfig #9

kwin opened this issue Dec 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@kwin
Copy link
Contributor

kwin commented Dec 23, 2023

Description

Although not explicitly listed in https://github.com/eclipse-jgit/jgit/blob/b1cc74b75b771279d81de15833da514c71513648/Documentation/config-options.md conditional includes are not supported yet by JGit. Those were added with Git 2.13

Motivation

This is very useful if slightly different configs should be used for several repositories (sharing the same root folder). Compare with https://stackoverflow.com/questions/21307793/set-git-config-values-for-all-child-folders

Alternatives considered

The only workaround would be repository specific configurations which leads to a lot of config duplication and effort to initially set this correctly

Additional context

No response

@tomaswolf
Copy link
Contributor

See also Eclipse bugzilla 543171 for an earlier report and some comments.

@kwin
Copy link
Contributor Author

kwin commented Dec 27, 2023

Thanks for the link. Maybe only path conditions (gitdir:) can be evaluated to simplify the implementation.

@tomaswolf tomaswolf added the enhancement New feature or request label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants