| 41 | } |
| 42 | |
| 43 | type patternLine struct { |
| 44 | // Pattern is a wildmatch pattern that, when matched, indicates that all |
| 45 | // of the below attributes (Attrs) should be applied to that tree entry. |
| 46 | // |
| 47 | // Pattern is relative to the tree in which the .gitattributes was read |
| 48 | // from. For example, /.gitattributes affects all blobs in the |
| 49 | // repository, while /path/to/.gitattributes affects all blobs that are |
| 50 | // direct or indirect children of /path/to. |
| 51 | pattern *wildmatch.Wildmatch |
| 52 | // Attrs is the list of attributes to be applied when the above pattern |
| 53 | // matches a given filename. |
| 54 | lineAttrs |
| 55 | } |
| 56 | |
| 57 | func (pl *patternLine) Pattern() *wildmatch.Wildmatch { |
| 58 | return pl.pattern |
nothing calls this directly
no outgoing calls
no test coverage detected