mirror of
https://github.com/go-task/task.git
synced 2025-07-17 01:43:07 +02:00
Ignore .hg for Mercurial, too (#1098)
This commit is contained in:
3
watch.go
3
watch.go
@ -175,5 +175,6 @@ func (e *Executor) registerWatchedFiles(w *watcher.Watcher, calls ...taskfile.Ca
|
|||||||
}
|
}
|
||||||
|
|
||||||
func shouldIgnoreFile(path string) bool {
|
func shouldIgnoreFile(path string) bool {
|
||||||
return strings.Contains(path, "/.git") || strings.Contains(path, "/.task") || strings.Contains(path, "/node_modules")
|
return strings.Contains(path, "/.git") || strings.Contains(path, "/.hg") ||
|
||||||
|
strings.Contains(path, "/.task") || strings.Contains(path, "/node_modules")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user