Following on from the brief discussion in #25, a useGitIgnore option might be nice to be able to utilise a found .gitignore to purposefully ignore particular directories.
Things to consider:
Is the use case for this valid?
Is it a common use that I'd want to automatically ignore everything within my .gitignore? The two have different scopes that may not align.
How would I find the .gitignore file?
Would we assume that it's in the same directory as process.cwd(), should we go looking for it or should the option give you the option to provide a string with the path of the file?
Following on from the brief discussion in #25, a
useGitIgnore
option might be nice to be able to utilise a found.gitignore
to purposefully ignore particular directories.Things to consider:
.gitignore
? The two have different scopes that may not align..gitignore
file? Would we assume that it's in the same directory asprocess.cwd()
, should we go looking for it or should the option give you the option to provide a string with the path of the file?