Documentation
¶
Overview ¶
Package gitignore implements Git-compatible .gitignore pattern matching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitIgnore ¶
type GitIgnore struct {
// contains filtered or unexported fields
}
GitIgnore holds a sequence of compiled patterns. Construct with New or NewOptions. Matching semantics follow Git’s .gitignore rules (last match wins).
func NewOptions ¶ added in v0.0.3
NewOptions compiles .gitignore-style lines with explicit options.
func (*GitIgnore) Append ¶ added in v0.0.3
Append compiles and appends new patterns, preserving last-match-wins order.
func (*GitIgnore) Ignored ¶
Ignored reports whether a relative path should be ignored. The caller must indicate if the path is a directory.
Click to show internal directories.
Click to hide internal directories.