MCPcopy Index your code
hub / github.com/devspace-sh/devspace / IgnoreParser

Interface IgnoreParser

helper/server/ignoreparser/ignoreparser.go:14–22  ·  view source on GitHub ↗

IgnoreParser is a wrapping interface for gitignore.IgnoreParser that adds a method to find out if the parser has any negating patterns

Source from the content-addressed store, hash-verified

12// IgnoreParser is a wrapping interface for gitignore.IgnoreParser that
13// adds a method to find out if the parser has any negating patterns
14type IgnoreParser interface {
15 // Matches returns if the given relative path matches the ignore parser
16 Matches(relativePath string, isDir bool) bool
17
18 // RequireFullScan is useful for optimization, since if an ignore parser has no
19 // general negate patterns, we can skip certain sub trees that do are ignored
20 // by another rule.
21 RequireFullScan() bool
22}
23
24type ignoreParser struct {
25 ignoreParser gitignore.IgnoreParser

Callers 16

matchesSelectorFunction · 0.65
UpdateMethod · 0.65
AddToArchiveMethod · 0.65
tarFolderMethod · 0.65
startUpstreamMethod · 0.65
initialSyncMethod · 0.65
shouldRemoveRemoteFunction · 0.65
shouldUploadFunction · 0.65
AddToArchiveMethod · 0.65
tarFolderMethod · 0.65
startUpstreamMethod · 0.65
deltaStateMethod · 0.65

Implementers 1

ignoreParserhelper/server/ignoreparser/ignoreparse

Calls

no outgoing calls

Tested by

no test coverage detected