-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore directories #68
Comments
This should already be happening, for |
Lol I fired up --debug and it told me right away "we're ignoring .git/ and target/" and now I feel like a jackass. I'm still getting the churn, though. I have observed this on Windows and Linux x64. My next guess is that maybe because I'm using IntelliJ IDEA, maybe the I am seeing the following lines in the debug trace on Windows x64:
which in my unqualified opinion suggests that I am seeing that it appropriately ignores Judging by the repeated 'ignoring ".git/index.lock"; path update ".git/"', I'd have to guess that whenever the |
Passing |
Ugh! Ok, I'll experiment a bit around this. Thanks for the report and investigation! |
This is a simple fix that will make it into the next watchexec. @passcod, here is the diff on my end: watchexec/watchexec@6ebb7bc |
This is more of a feature request than a pressing issue, but:
Would it be possible to set this to remove certain directories (particularly
.git/
) from the list of filesystem entities monitored to trigger re-execution of the watch command?I've noticed that when I perform Git operations that don't affect the main working tree, like stage/unstage, this still causes filesystem events that trigger a re-execution despite the source files not having changed.
This is a fantastic tool and I absolutely love using it. Thanks so much for making it!
The text was updated successfully, but these errors were encountered: