Documentation
¶
Overview ¶
Package ignorerules applies .gitignore, .ignore, and .fdignore files the way upstream Pi's package manager does when it discovers package resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
Rule is one pattern from a .gitignore, .ignore, or .fdignore file, prefixed with its directory relative to the walk root. Its immutable matcher belongs to that walk; a reload constructs fresh rules.
func Append ¶
Append adds the rules from dir's .gitignore, .ignore, and .fdignore files, as upstream Pi's addIgnoreRules (core/package-manager.ts) does.
func AppendPatterns ¶
AppendPatterns appends already root-relative ignore patterns without filesystem access. It preserves negation and escaping for environment-backed resource loaders.