IsPathExcluded returns true when relPath matches any of the supplied gitignore-style patterns or any default excluded directory prefix (see ExcludedDirs).
(repoDir, relPath string, patterns []string)
| 37 | // gitignore-style patterns or any default excluded directory prefix |
| 38 | // (see ExcludedDirs). |
| 39 | func IsPathExcluded(repoDir, relPath string, patterns []string) bool { |
| 40 | stub := &Provider{repoDir: repoDir} |
| 41 | return stub.isPathExcluded(relPath, patterns) |
| 42 | } |
| 43 | |
| 44 | // MatchGitignorePattern reports whether relPath matches a single |
| 45 | // gitignore-style pattern, using the simplified semantics that diff.Provider |