MatchGitignorePattern reports whether relPath matches a single gitignore-style pattern, using the simplified semantics that diff.Provider already implements (basename match, prefix match, directory-only suffix). Useful when callers want to test a single pattern in isolation.
(relPath, pat string)
| 29 | // already implements (basename match, prefix match, directory-only suffix). |
| 30 | // Useful when callers want to test a single pattern in isolation. |
| 31 | func MatchGitignorePattern(relPath, pat string) bool { |
| 32 | return matchGitignorePattern(relPath, pat) |
| 33 | } |