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

WIP: take into account global gitignore #433

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raboof
Copy link
Member

@raboof raboof commented Feb 2, 2025

Take into account exclusions from the global gitignore file if it is present in the default location. It's kind of icky to read environment variables in code called from an enum constructor, but I didn't see a more elegant solution yet either. Relatedly, I have not yet created a unit test (or made sure that a global gitignore will not interfere with a global gitignore being present), hence the WIP status.

https://git-scm.com/docs/gitignore

Take into account exclusions from the global gitignore file if it is
present in the default location. It's kind of icky to read environment
variables in code called from an enum constructor, but I didn't see a
more elegant solution yet either. Relatedly, I have not yet created a
unit test (or made sure that a global gitignore will not interfere with
a global gitignore being present), hence the WIP status.

https://git-scm.com/docs/gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant