MCPcopy Create free account
hub / github.com/denormal/go-gitignore / NewPattern

Function NewPattern

pattern.go:55–98  ·  view source on GitHub ↗

any{} NewPattern returns a Pattern from the ordered slice of Tokens. The tokens are assumed to represent a well-formed .gitignore pattern. A Pattern may be negated, anchored to the start of the path (relative to the base directory of tie containing .gitignore), or match directories only.

(tokens []*Token)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

negationMethod · 0.85
pathMethod · 0.85

Calls 3

compileMethod · 0.95
tokensetTypeAlias · 0.85
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…