Documentation
¶
Overview ¶
package ignore provides helpers to support ignore-files similar to .gitignore
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IgnoreFile = ".sourcegraph/ignore"
)
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func ParseIgnoreFile ¶
ParseIgnoreFile parses an ignore-file according to the following rules
- each line represents a glob-pattern relative to the root of the repository - for patterns without any glob-characters, a trailing ** is implicit - lines starting with # are ignored - empty lines are ignored
Click to show internal directories.
Click to hide internal directories.