MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / patternLine

Struct patternLine

git/gitattr/attr.go:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43type 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
57func (pl *patternLine) Pattern() *wildmatch.Wildmatch {
58 return pl.pattern

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected