When we specify directories to watch, we often want to ignore some subset of the files under those directories. For example: - Watch /src/repo, but ignore /src/repo/.git - Watch /src/repo, but ignore everything in /src/repo/bazel-bin except /src/repo/bazel-bin/app-binary The PathMatcher interface
| 58 | // |
| 59 | // The PathMatcher interface helps us manage these ignores. |
| 60 | type PathMatcher interface { |
| 61 | Matches(file string) (bool, error) |
| 62 | |
| 63 | // If this matches the entire dir, we can often optimize filetree walks a bit. |
| 64 | MatchesEntireDir(file string) (bool, error) |
| 65 | } |
| 66 | |
| 67 | // AnyMatcher is a PathMatcher to match any path |
| 68 | type AnyMatcher struct{} |
no outgoing calls
no test coverage detected