LoadGitignorePatterns reads and parses .gitignore patterns from the given repository root. Returns nil if the file is missing or unreadable.
(repoDir string)
| 29 | // LoadGitignorePatterns reads and parses .gitignore patterns from the given |
| 30 | // repository root. Returns nil if the file is missing or unreadable. |
| 31 | func LoadGitignorePatterns(repoDir string) []string { |
| 32 | stub := &Provider{repoDir: repoDir} |
| 33 | return stub.loadGitignorePatterns() |
| 34 | } |
| 35 | |
| 36 | // IsPathExcluded returns true when relPath matches any of the supplied |
| 37 | // gitignore-style patterns or any default excluded directory prefix |