Documentation
¶
Overview ¶
Package ignore implements the DevSpecs v0.1 ignore stack: repo-root .gitignore, .git/info/exclude when present, and repo-root .aiignore (gitignore-like syntax).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher answers whether a repo-relative path should be skipped (gitignore rules).
func FromContext ¶
FromContext returns the matcher from ctx, or nil.
func NewMatcher ¶
NewMatcher loads .gitignore, .git/info/exclude, and .aiignore from repoRoot (missing files ignored). Returns a non-nil Matcher; matching is a no-op when no patterns exist.
func (*Matcher) RelFromAbs ¶
RelFromAbs returns the slash-separated path relative to the matcher's repo root, or "" if outside.
Click to show internal directories.
Click to hide internal directories.