| 40 | } |
| 41 | |
| 42 | type pattern struct { |
| 43 | domain []string |
| 44 | pattern []string |
| 45 | inclusion bool |
| 46 | dirOnly bool |
| 47 | isGlob bool |
| 48 | } |
| 49 | |
| 50 | // ParsePattern parses a gitignore pattern string into the Pattern structure. |
| 51 | func ParsePattern(p string, domain []string) Pattern { |
nothing calls this directly
no outgoing calls
no test coverage detected