rename: gitignore -> use_gitignore for clarity

Rename the Taskfile/task option from `gitignore` to `use_gitignore`
to avoid ambiguity (could be read as "ignore git" vs "use .gitignore").
Consistent with Biome's `useIgnoreFile` naming convention.
This commit is contained in:
Valentin Maerten
2026-04-04 13:05:01 +02:00
parent 7cea8e3364
commit 7705f922c1
9 changed files with 28 additions and 28 deletions

View File

@@ -34,7 +34,7 @@ type Taskfile struct {
Dotenv []string
Run string
Interval time.Duration
Gitignore bool
UseGitignore bool `yaml:"use_gitignore"`
}
// Merge merges the second Taskfile into the first
@@ -90,7 +90,7 @@ func (tf *Taskfile) UnmarshalYAML(node *yaml.Node) error {
Dotenv []string
Run string
Interval time.Duration
Gitignore bool
UseGitignore bool `yaml:"use_gitignore"`
}
if err := node.Decode(&taskfile); err != nil {
return errors.NewTaskfileDecodeError(err, node)
@@ -108,7 +108,7 @@ func (tf *Taskfile) UnmarshalYAML(node *yaml.Node) error {
tf.Dotenv = taskfile.Dotenv
tf.Run = taskfile.Run
tf.Interval = taskfile.Interval
tf.Gitignore = taskfile.Gitignore
tf.UseGitignore = taskfile.UseGitignore
if tf.Includes == nil {
tf.Includes = NewIncludes()
}