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

Support full .gitignore hierarchy #105

Open
kaste opened this issue Dec 16, 2024 · 4 comments
Open

Support full .gitignore hierarchy #105

kaste opened this issue Dec 16, 2024 · 4 comments

Comments

@kaste
Copy link

kaste commented Dec 16, 2024

I think blitz only respects a local .gitignore file. It should support the full ignore hierarchy. Esp. user/.gitignore

@Natestah
Copy link
Owner

I noticed some results coming in the other day from something that was from .gitignore. I dismissed it because I was targeting the search to below the .gitignore. To which I thought was the right answer.

example:

c:\gitRepo\.gitIgnore

Would not register if I set my search to

c:\gitRepo\src

Thanks for the report, I'll try and get this sorted. Could you check to see if it works right when you target up to a path that would include the .gitIgnore?

@kaste
Copy link
Author

kaste commented Dec 17, 2024

To clarify what I meant: support the whole gitignore cascade. Especially .git/info/exclude and ~/.gitexclude (the default value of core.excludesFile). I did not yet check if all local gitignores are used, e.g. that you walk up to the repo-root, and merge them, but clearly the global (system-wide) gitignores, in my case ~/.gitexclude is not read.

E.g. in the global gitexcludefile I have *.sublime-workspace etc.

@Natestah
Copy link
Owner

Ok, I am learning something new today. I will look into that

@kaste
Copy link
Author

kaste commented Dec 17, 2024

Ok. It's here: 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

No branches or pull requests

2 participants