forked from jmhodges/justrun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid firing event if no files changed
If the changes that triggered the event were only to known files, and all of those files have the same hashes as when we began, we shouldn't actually reload the command. This optimization does *not* short circuit command reload if any of these conditions hold: - a changed file is larger than 20MB, e.g. changes to these files always trigger a reload. - more than 500 files changed - a directory or an unknown file was changed. Fixes jmhodges#23.
- Loading branch information
1 parent
0ebecc6
commit 969ac62
Showing
2 changed files
with
76 additions
and
7 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
Weren't ever using the first value here.