globby
globby copied to clipboard
Respect `gitignore` from above
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.
There is a $80.00 open bounty on this issue. Add more on Issuehunt.
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on Issuehunt to raise funds.
Another example is stuff you might have in a global .gitignore, like .DS_Store files or personal conventions like IDEAS.md.
@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 https://github.com/sindresorhus/globby/pull/107. This issue is blocked by https://github.com/mrmlnc/fast-glob/issues/265.
I may have a solution for this, we can find root .git directory, and glob .gitignore from there.