MCPcopy Create free account
hub / github.com/driusan/dgit / sortPatterns

Function sortPatterns

git/ignore.go:217–221  ·  view source on GitHub ↗

Patterns are sorted by their scope so that the most specific scopes are first and the more broad scopes are later on. This is to allow broader scopes to negate previous pattern matches in the future.

(patterns *[]IgnorePattern)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

MatchIgnoresFunction · 0.85
TestPatternSortFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by 1

TestPatternSortFunction · 0.68