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)
| 80 | // already implements (basename match, prefix match, directory-only suffix). |
| 81 | // Useful when callers want to test a single pattern in isolation. |
| 82 | func MatchGitignorePattern(relPath, pat string) bool { |
| 83 | return matchGitignorePattern(relPath, pat) |
| 84 | } |