-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Use $XDG_CONFIG_HOME/git/ignore as the default global .gitignore #212
Comments
The specification says:
I think it means the correct behavior is to use the |
Yes that is the correct behavior, but I meant that broot can use |
Not sure if this is related or if it deserves a new issue, but I've explicitly set # ~/.config/git/config
[core]
excludesFile = ~/.config/git/ignore
Even with this, |
@rlue this looks like a different issue. I suspect the / in /tags isn't understood by broot to be the current repository. Can you create the issue ? |
Sorry it took so long to follow up. I see that you created #321 for this. Thanks so much! 🙇 |
Describe the bug
Broot currently refers to the file specified in
core.excludesFile
variable of the global git config as the global.gitignore
. However, it is stated in the documentation that$XDG_CONFIG_HOME/git/ignore
(or$HOME/.config/git/ignore
if$XDG_CONFIG_HOME
is not set) is the default value ofcore.excludesFile
. It would be nice if broot refers to$XDG_CONFIG_HOME/git/ignore
whencore.excludesFile
is not set.To Reproduce
$XDG_CONFIG_HOME/git/ignore
with*
(ignores all) as the content.core.excludesFiles
variable from the global git config.broot -I
to see that files are not ignored.Expected behavior
All files are expected to be ignored in the above case.
Configuration (please complete the following information):
The text was updated successfully, but these errors were encountered: