-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Respect gitignore
from above
#86
Comments
Another example is stuff you might have in a global |
@issuehuntfest has funded $80.00 to this issue. See it on IssueHunt |
If anyone wants to work on this, see the initial attempt and feedback in #107. This issue is blocked by mrmlnc/fast-glob#265. |
After #772 made `codemod` respect `.gitignore` files by using the `gitignore` option in `globby`, I pretty quickly ran into sindresorhus/globby#86. There didn't seem to be an obvious workaround for this, so I ended up building the functionality to search up for `.gitignore` files so that e.g. running `codemod` in a subdirectory would respect a `.gitignore` at the root of the git repo. This commit also contains some more cleanup and fixes which I didn't bother to separate.
After #772 made `codemod` respect `.gitignore` files by using the `gitignore` option in `globby`, I pretty quickly ran into sindresorhus/globby#86. There didn't seem to be an obvious workaround for this, so I ended up building the functionality to search up for `.gitignore` files so that e.g. running `codemod` in a subdirectory would respect a `.gitignore` at the root of the git repo. This commit also contains some more cleanup and fixes which I didn't bother to separate.
After #772 made `codemod` respect `.gitignore` files by using the `gitignore` option in `globby`, I pretty quickly ran into sindresorhus/globby#86. There didn't seem to be an obvious workaround for this, so I ended up building the functionality to search up for `.gitignore` files so that e.g. running `codemod` in a subdirectory would respect a `.gitignore` at the root of the git repo. This commit also contains some more cleanup and fixes which I didn't bother to separate.
I may have a solution for this, we can find root |
@sindresorhus is doing what @fisker suggested can be done in globby itself? I am not familiar with your codebase, but I am using globby and did it myself in my codebase instead. If this mechanism was in globby itself that would be awesome. |
Currently only gitignores from cwd and down are taken into account for gitignore filtering. What about those who are higher in a hierarchy?
Use case: monorepo repositories (like babel for example), where gitignore is placed in root and individual packages do not have their own.
The text was updated successfully, but these errors were encountered: