LoadGitignorePatterns reads and parses .gitignore patterns from the given repository root. Returns nil if the file is missing or unreadable.
(repoDir string)
| 12 | // LoadGitignorePatterns reads and parses .gitignore patterns from the given |
| 13 | // repository root. Returns nil if the file is missing or unreadable. |
| 14 | func LoadGitignorePatterns(repoDir string) []string { |
| 15 | stub := &Provider{repoDir: repoDir} |
| 16 | return stub.loadGitignorePatterns() |
| 17 | } |
| 18 | |
| 19 | // IsPathExcluded returns true when relPath matches any of the supplied |
| 20 | // gitignore-style patterns or any default excluded directory prefix |