Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterResult ¶ added in v0.1.10
type IgnoreMatcher ¶ added in v0.2.5
type IgnoreMatcher struct {
// contains filtered or unexported fields
}
IgnoreMatcher reports whether repository-relative paths match a validated set of ignore globs, using the same normalization and doublestar semantics as PathFilter. The zero value matches nothing.
func NewIgnoreMatcher ¶ added in v0.2.5
func NewIgnoreMatcher(globs []string, label string) (IgnoreMatcher, error)
NewIgnoreMatcher validates globs and returns a matcher. Validation errors name the flag given by label (for example "discover-ignore").
func (IgnoreMatcher) Matches ¶ added in v0.2.5
func (matcher IgnoreMatcher) Matches(inputPath string) bool
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) Match ¶
func (i *Index) Match(changed []string) MatchResult
type MatchResult ¶
type PathFilter ¶ added in v0.1.10
type PathFilter struct {
// contains filtered or unexported fields
}
func NewPathFilter ¶ added in v0.1.10
func NewPathFilter(config PathFilterConfig) (PathFilter, error)
func (PathFilter) Apply ¶ added in v0.1.10
func (filter PathFilter) Apply(paths []string) FilterResult
type PathFilterConfig ¶ added in v0.1.10
Click to show internal directories.
Click to hide internal directories.