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)
| 71 | // gitignore-style patterns or any default excluded directory prefix |
| 72 | // (see ExcludedDirs). |
| 73 | func IsPathExcluded(repoDir, relPath string, patterns []string) bool { |
| 74 | stub := &Provider{repoDir: repoDir} |
| 75 | return stub.isPathExcluded(relPath, patterns) |
| 76 | } |
| 77 | |
| 78 | // MatchGitignorePattern reports whether relPath matches a single |
| 79 | // gitignore-style pattern, using the simplified semantics that diff.Provider |