Documentation
¶
Overview ¶
Package gitignore implements .gitignore check predicate.
Uses only checked in .gitignore files, ignoring any globals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExcluder ¶
NewExcluder returns a predicate that checks whether the given absolute path under given `dir` is excluded by some `ignoreFile` (usually ".gitignore") file which is active in that directory.
func NewPatternExcluder ¶
NewPatternExcluder returns a predicate that returns true if the path is excluded by any of the given .gitignore patterns.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.