MCPcopy Index your code
hub / github.com/go-task/task / ShouldUseGitignore

Method ShouldUseGitignore

taskfile/ast/task.go:81–83  ·  view source on GitHub ↗

ShouldUseGitignore returns true if gitignore filtering is enabled for the task. Returns false if UseGitignore is nil or set to false.

()

Source from the content-addressed store, hash-verified

79// ShouldUseGitignore returns true if gitignore filtering is enabled for the task.
80// Returns false if UseGitignore is nil or set to false.
81func (t *Task) ShouldUseGitignore() bool {
82 return t.UseGitignore != nil && *t.UseGitignore
83}
84
85// WildcardMatch will check if the given string matches the name of the Task and returns any wildcard values.
86func (t *Task) WildcardMatch(name string) (bool, []string) {

Callers 5

collectSourcesMethod · 0.80
IsUpToDateMethod · 0.80
ValueMethod · 0.80
checksumMethod · 0.80

Calls

no outgoing calls

Tested by 1