mirror of
https://github.com/go-task/task.git
synced 2026-07-01 08:34:19 +00:00
feat: add use_gitignore option to exclude ignored files from sources/generates (#2773)
This commit is contained in:
1
testdata/gitignore_negation/.gitignore
vendored
Normal file
1
testdata/gitignore_negation/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.log
|
||||
11
testdata/gitignore_negation/Taskfile.yml
vendored
Normal file
11
testdata/gitignore_negation/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
version: '3'
|
||||
|
||||
use_gitignore: true
|
||||
|
||||
tasks:
|
||||
build:
|
||||
cmds:
|
||||
- echo "build executed"
|
||||
sources:
|
||||
- ./sub/*.log
|
||||
method: checksum
|
||||
1
testdata/gitignore_negation/sub/.gitignore
vendored
Normal file
1
testdata/gitignore_negation/sub/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!debug.log
|
||||
2
testdata/gitignore_negation/testdata/TestGitignoreNegation-first_run.golden
vendored
Normal file
2
testdata/gitignore_negation/testdata/TestGitignoreNegation-first_run.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
task: [build] echo "build executed"
|
||||
build executed
|
||||
1
testdata/gitignore_negation/testdata/TestGitignoreNegation-ignored_file_modified.golden
vendored
Normal file
1
testdata/gitignore_negation/testdata/TestGitignoreNegation-ignored_file_modified.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: Task "build" is up to date
|
||||
2
testdata/gitignore_negation/testdata/TestGitignoreNegation-reincluded_file_modified.golden
vendored
Normal file
2
testdata/gitignore_negation/testdata/TestGitignoreNegation-reincluded_file_modified.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
task: [build] echo "build executed"
|
||||
build executed
|
||||
1
testdata/gitignore_negation/testdata/TestGitignoreNegation-up_to_date.golden
vendored
Normal file
1
testdata/gitignore_negation/testdata/TestGitignoreNegation-up_to_date.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: Task "build" is up to date
|
||||
Reference in New Issue
Block a user