mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Merge
added missing gc, unit tests ok (almost)
This commit is contained in:
parent
92d9b980b5
commit
45a07f4d85
2 changed files with 6 additions and 1 deletions
|
@ -49,6 +49,10 @@ CmdMerge::CmdMerge ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdMerge::execute (std::string& output)
|
||||
{
|
||||
// invoke gc before merging in order to update data files
|
||||
context.tdb.gc ();
|
||||
context.tdb2.gc ();
|
||||
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
std::string file;
|
||||
if (words.size ())
|
||||
|
@ -92,6 +96,7 @@ int CmdMerge::execute (std::string& output)
|
|||
if ( ((sAutopush == "ask") && (confirm ("Would you like to push the merged changes to \'" + uri._data + "\'?")) )
|
||||
|| (bAutopush) )
|
||||
{
|
||||
// TODO derive autopush uri from merge.default.uri? otherwise: change prompt above
|
||||
// context.task.set ("description", uri._data);
|
||||
|
||||
std::string out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue