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

Method Match

internal/gitignore/matcher.go:26–34  ·  view source on GitHub ↗
(path []string, isDir bool)

Source from the content-addressed store, hash-verified

24}
25
26func (m *matcher) Match(path []string, isDir bool) bool {
27 n := len(m.patterns)
28 for i := n - 1; i >= 0; i-- {
29 if match := m.patterns[i].Match(path, isDir); match > NoMatch {
30 return match == Exclude
31 }
32 }
33 return false
34}

Callers

nothing calls this directly

Calls 1

MatchMethod · 0.65

Tested by

no test coverage detected