Skip to content

Commit 30cbf02

Browse files
committed
Update documentation to reflect the new default "method"
1 parent 9e4e9b4 commit 30cbf02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,15 @@ tasks:
346346
```
347347

348348
`sources` and `generates` can be files or file patterns. When both are given,
349-
Task will compare the modification date/time of the files to determine if it's
349+
Task will compare the checksum of the files to determine if it's
350350
necessary to run the task. If not, it will just print a message like
351351
`Task "js" is up to date`.
352-
353-
If you prefer this check to be made by the content of the files, instead of
354-
its timestamp, just set the `method` property to `checksum`.
355352
You will probably want to ignore the `.task` folder in your `.gitignore` file
356353
(It's there that Task stores the last checksum).
357354

355+
If you prefer this check to be made by the modification timestamp of the files,
356+
instead of its checksum (content), just set the `method` property to `timestamp`.
357+
358358
```yaml
359359
version: '3'
360360

0 commit comments

Comments
 (0)