mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdProjects: Enforce garbage collector
This commit is contained in:
parent
58e62711f3
commit
ffd6465661
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
2.4.2 () -
|
2.4.2 () -
|
||||||
|
|
||||||
|
- TW-1450 Projects command should trigger running garbage collector (thanks to
|
||||||
|
Tomas Babej).
|
||||||
- TW-1535 move default listing-break from list to ls (thanks to David Patrick).
|
- TW-1535 move default listing-break from list to ls (thanks to David Patrick).
|
||||||
- TW-1545 cc1plus: error: unrecognized command line option '-std=c++11' (thanks
|
- TW-1545 cc1plus: error: unrecognized command line option '-std=c++11' (thanks
|
||||||
to Petteri).
|
to Petteri).
|
||||||
|
|
|
@ -53,6 +53,9 @@ int CmdProjects::execute (std::string& output)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
|
// Enforce the garbage collector to show correct task counts
|
||||||
|
context.tdb2.gc ();
|
||||||
|
|
||||||
// Get all the tasks.
|
// Get all the tasks.
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
std::vector <Task> tasks = context.tdb2.pending.get_tasks ();
|
std::vector <Task> tasks = context.tdb2.pending.get_tasks ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue