MCPcopy Create free account
hub / github.com/go-git/go-git / String

Method String

plumbing/format/gitattributes/attributes.go:77–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (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.
91func ReadAttributes(r io.Reader, domain []string, allowMacro bool) (attributes []MatchAttribute, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected