mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdPurge: Require GC run prior to execution
Since TDB2::purge method allows purging of the tasks only on competed.data file, we need to make sure that all the tasks that were supposed to be moved to completed.data have been moved - in other words, we need to run GC. This allows for diract usage of purge after delete, that is: $ task <filter> delete $ task <filter> purge working as expected.
This commit is contained in:
parent
b3652800da
commit
2b88260531
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ CmdPurge::CmdPurge ()
|
||||||
_read_only = false;
|
_read_only = false;
|
||||||
_displays_id = false;
|
_displays_id = false;
|
||||||
_needs_confirm = true;
|
_needs_confirm = true;
|
||||||
_needs_gc = false;
|
_needs_gc = true;
|
||||||
_uses_context = true;
|
_uses_context = true;
|
||||||
_accepts_filter = true;
|
_accepts_filter = true;
|
||||||
_accepts_modifications = false;
|
_accepts_modifications = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue