-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(git): optimize git scan when exclude but no include filter is set
This can be a major optimization in certain cases. The reason this wasn't done previously was due to a git ls-files issue but we missed out on this path when no includes are used, in which case the issue doesn't come up. Usually includes are much more specific than excludes in configs, so this approach should cover a lot of user scenarios. It is still more optimal to use `.gardenignore` files over exclude patterns where possible, but using excludes in configs is obviously a common and supported use case, and not always possible to use the ignore files (say, if many actions/modules share a directory and need different exclusions).
- Loading branch information
1 parent
45a5526
commit 7361fc9
Showing
2 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters