- 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:
Paul Beckingham 2010-11-28 16:26:21 -05:00
parent 5bf8feefca
commit 0ac2b43ad3
5 changed files with 11 additions and 0 deletions

View file

@ -66,4 +66,5 @@ suggestions:
Peter De Poorter Peter De Poorter
Itay Perl Itay Perl
Max Muller Max Muller
Sander Marechal

View file

@ -11,6 +11,9 @@
'journal.info' configuration setting. 'journal.info' configuration setting.
+ Added 'description+' to all reports with duplicate sort keys, to stabilize + Added 'description+' to all reports with duplicate sort keys, to stabilize
the sequence. 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 #158, regular expression support for filters and substitutions.
+ Added feature #247, providing infinite width reports when redirecting output + Added feature #247, providing infinite width reports when redirecting output
to a file, by setting defaultwidth to 0. to a file, by setting defaultwidth to 0.

2
NEWS
View file

@ -32,6 +32,8 @@ New configuration options in taskwarrior 1.9.4
to 'over'). Default is off, as this is an advanced feature. to 'over'). Default is off, as this is an advanced feature.
- journal.info controls whether a change log for each task is displayed by - journal.info controls whether a change log for each task is displayed by
the 'info' command. 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 Newly deprecated features in taskwarrior 1.9.4

View file

@ -60,6 +60,7 @@ std::string Config::defaults =
"# Files\n" "# Files\n"
"data.location=~/.task\n" "data.location=~/.task\n"
"locking=on # Use file-level locking\n" "locking=on # Use file-level locking\n"
"gc=on # Garbage-collect data files - DO NOT CHANGE unless you are sure\n"
"\n" "\n"
"# Terminal\n" "# Terminal\n"
"curses=on # Use ncurses library to determine terminal width\n" "curses=on # Use ncurses library to determine terminal width\n"

View file

@ -596,6 +596,10 @@ int TDB::gc ()
{ {
Timer t ("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_pending_changes = 0;
int count_completed_changes = 0; int count_completed_changes = 0;
Date now; Date now;