mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature #561
- Added ability to temporarily suspend GC (rc.gc:0) for a given command, which helps scriptwriters implement shadow files externally (thanks to Sander Marechal).
This commit is contained in:
parent
5bf8feefca
commit
0ac2b43ad3
5 changed files with 11 additions and 0 deletions
1
AUTHORS
1
AUTHORS
|
@ -66,4 +66,5 @@ suggestions:
|
|||
Peter De Poorter
|
||||
Itay Perl
|
||||
Max Muller
|
||||
Sander Marechal
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
'journal.info' configuration setting.
|
||||
+ Added 'description+' to all reports with duplicate sort keys, to stabilize
|
||||
the sequence.
|
||||
+ Added ability to temporarily suspend GC (rc.gc:0) for a given command, which
|
||||
helps scriptwriters implement shadow files externally (thanks to Sander
|
||||
Marechal).
|
||||
+ Added feature #158, regular expression support for filters and substitutions.
|
||||
+ Added feature #247, providing infinite width reports when redirecting output
|
||||
to a file, by setting defaultwidth to 0.
|
||||
|
|
2
NEWS
2
NEWS
|
@ -32,6 +32,8 @@ New configuration options in taskwarrior 1.9.4
|
|||
to 'over'). Default is off, as this is an advanced feature.
|
||||
- journal.info controls whether a change log for each task is displayed by
|
||||
the 'info' command.
|
||||
- gc=off can be used, temporarily, to defer GC until later commands, which
|
||||
eliminates problems with task ID numbers for script writers.
|
||||
|
||||
Newly deprecated features in taskwarrior 1.9.4
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ std::string Config::defaults =
|
|||
"# Files\n"
|
||||
"data.location=~/.task\n"
|
||||
"locking=on # Use file-level locking\n"
|
||||
"gc=on # Garbage-collect data files - DO NOT CHANGE unless you are sure\n"
|
||||
"\n"
|
||||
"# Terminal\n"
|
||||
"curses=on # Use ncurses library to determine terminal width\n"
|
||||
|
|
|
@ -596,6 +596,10 @@ int TDB::gc ()
|
|||
{
|
||||
Timer t ("TDB::gc");
|
||||
|
||||
// Allowed as a temporary override.
|
||||
if (!context.config.getBoolean ("gc"))
|
||||
return 0;
|
||||
|
||||
int count_pending_changes = 0;
|
||||
int count_completed_changes = 0;
|
||||
Date now;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue