globby icon indicating copy to clipboard operation
globby copied to clipboard

Respect `gitignore` from above

Open vonagam opened this issue 7 years ago • 5 comments

Issuehunt badges

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.

vonagam avatar May 18 '18 16:05 vonagam

Another example is stuff you might have in a global .gitignore, like .DS_Store files or personal conventions like IDEAS.md.

callumlocke avatar Dec 03 '18 18:12 callumlocke

@issuehuntfest has funded $80.00 to this issue. See it on IssueHunt

IssueHuntBot avatar Jan 09 '19 17:01 IssueHuntBot

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.

sindresorhus avatar Mar 07 '21 11:03 sindresorhus

I may have a solution for this, we can find root .git directory, and glob .gitignore from there.

fisker avatar Jan 25 '22 03:01 fisker