MCPcopy Create free account
hub / github.com/go-task/task / Match

Method Match

internal/gitignore/matcher.go:11–11  ·  view source on GitHub ↗

Match matches patterns in the order of priorities. As soon as an inclusion or exclusion is found, not further matching is performed.

(path []string, isDir bool)

Source from the content-addressed store, hash-verified

9 // Match matches patterns in the order of priorities. As soon as an inclusion or
10 // exclusion is found, not further matching is performed.
11 Match(path []string, isDir bool) bool
12}
13
14// NewMatcher constructs a new global matcher. Patterns must be given in the order of

Callers 4

TestMatcher_MatchFunction · 0.95
ignoredFunction · 0.65
MatchMethod · 0.65
TestParsePattern_MatchFunction · 0.65

Implementers 2

matcherinternal/gitignore/matcher.go
patterninternal/gitignore/pattern.go

Calls

no outgoing calls

Tested by 2

TestMatcher_MatchFunction · 0.76
TestParsePattern_MatchFunction · 0.52