()
| 75 | } |
| 76 | |
| 77 | func (a attribute) String() string { |
| 78 | switch a.state { |
| 79 | case attributeSet: |
| 80 | return a.name + ": set" |
| 81 | case attributeUnset: |
| 82 | return a.name + ": unset" |
| 83 | case attributeUnspecified: |
| 84 | return a.name + ": unspecified" |
| 85 | default: |
| 86 | return a.name + ": " + a.value |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // ReadAttributes reads patterns and attributes from the gitattributes format. |
| 91 | func ReadAttributes(r io.Reader, domain []string, allowMacro bool) (attributes []MatchAttribute, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected