-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
vcs.useIgnoreFile
Git integration does not take .git/info/exclude
into account
#4822
Comments
useIgnoreFile
Git integration does not take .git/info/exclude
into accountvcs.useIgnoreFile
Git integration does not take .git/info/exclude
into account
Can you provide some documentation for |
I’m kinda inclined to say we may indeed want a more direct Git integration rather than parsing In #4817 someone also asked for commit linting, which would also require more direct Git integration, I bet. I know that’s not really a current priority, but I do agree it might be a nice thing to have at some point. Plus it would relieve us of needing to support the custom glob format for Git. cc @Conaclos |
While this is true, it's also a limitation. Time ago I fixed an issue where it was possible have a I'm not against enforcing checking the presence of |
From https://git-scm.com/docs/gitignore:
Perhaps this is something that happens when dealing with source code archives (https://docs.github.com/en/repositories/working-with-files/using-files/downloading-source-code-archives)? |
No, it was around some Docker project or something. I can't recall the details. |
Environment information
What happened?
Do this in a git repo with biome installed:
foo.js
that has linting errors/foo.js
to your.git/info/exclude
npx @biomejs/biome check . --vcs-enabled=true --vcs-client-kind=git
. This will print out errors aboutfoo.js
Expected result
It should ignore
foo.js
.I'm guessing biome has implemented it's own logic for checking if a file is tracked by git, rather than asking git itself. This feels a lot like #1679, which was closed as "by design". (Feel free to close this as well, I just wanted to have a record of someone asking about it.)
Code of Conduct
The text was updated successfully, but these errors were encountered: