Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ignore ¶
type Ignore struct {
// contains filtered or unexported fields
}
Ignore is a gitignore-style object to ignore files/directories
func NewIgnore ¶
NewIgnore produces an Ignore object, with compiled lines from .gitignore and DefaultIgnores which you can match files against
func (*Ignore) AddIgnoreFiles ¶ added in v0.1.6
AddIgnoreFiles walks each path provided in search of any files that match ignoreName and add the contents of those files to the gitignore matcher NOTE: this is very costly in large directories and should be used with caution
Click to show internal directories.
Click to hide internal directories.