Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IgnoreList ¶
type IgnoreList struct {
// contains filtered or unexported fields
}
IgnoreList handles checking whether files should be ignored based on default patterns and custom .contextshrinkerignore patterns.
func NewIgnoreList ¶
func NewIgnoreList(rootDir string) (*IgnoreList, error)
NewIgnoreList creates an IgnoreList. It always appends the standard defaults.
func (*IgnoreList) ShouldIgnore ¶
func (il *IgnoreList) ShouldIgnore(relPath string) bool
ShouldIgnore returns true if the given relative path matches any of the ignore patterns.
Click to show internal directories.
Click to hide internal directories.