loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
()
| 282 | |
| 283 | // loadGitignorePatterns reads and parses .gitignore patterns from the repo root. |
| 284 | func (p *Provider) loadGitignorePatterns() []string { |
| 285 | data, err := os.ReadFile(filepath.Join(p.repoDir, ".gitignore")) |
| 286 | if err != nil { |
| 287 | return nil |
| 288 | } |
| 289 | return parseGitignorePatterns(data) |
| 290 | } |
| 291 | |
| 292 | func parseGitignorePatterns(data []byte) GitignorePatterns { |
| 293 | var patterns GitignorePatterns |
no test coverage detected