Documentation
¶
Overview ¶
Package amberignore filters ingest trees through .amberignore files with gitignore semantics: patterns compose per directory down the tree and support negation, ** globs, dir-only (trailing /) and anchored (leading /) forms; the last matching pattern wins.
Index ¶
Constants ¶
const FileName = ".amberignore"
FileName is the per-directory ignore file honored during ingest.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher answers whether entries of one directory are ignored, carrying the patterns accumulated from the ingest root down to that directory. A nil *Matcher is valid and ignores nothing (used for --no-ignore). Matchers are immutable, so sibling subtrees can Descend and match concurrently.
func Root ¶
Root returns the matcher for the ingest root, loading <rootDir>/.amberignore if present.