From 8d3e34081993d4d759f0467db5ec8203b49b5458 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 6 Oct 2012 10:23:29 -0400 Subject: [PATCH] Sync - Properly marked sync command as not displaying IDs, therefore no GC. --- src/commands/CmdSync.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index a9ad63937..9b38376b4 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -44,7 +44,7 @@ CmdSync::CmdSync () _usage = "task synchronize"; _description = STRING_CMD_SYNC_USAGE; _read_only = false; - _displays_id = true; + _displays_id = false; } //////////////////////////////////////////////////////////////////////////////// @@ -87,6 +87,8 @@ int CmdSync::execute (std::string& output) std::vector lines; split (lines, payload, '\n'); + // TODO Load all tasks. + std::string synch_key; std::vector ::iterator line; for (line = lines.begin (); line != lines.end (); ++line) @@ -105,6 +107,8 @@ int CmdSync::execute (std::string& output) // TODO Truncate backlog.data. // TODO Store new synch key. + + // TODO Commit. } else {