mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TDB2
- Now updates the task ID of any new task, therefore avoiding off-by-one errors that occur when code calls TDB2::next_id.
This commit is contained in:
parent
45e6512c02
commit
6faf6bb678
4 changed files with 11 additions and 14 deletions
|
@ -55,7 +55,7 @@ int CmdAdd::execute (std::string& output)
|
|||
context.tdb2.add (task);
|
||||
|
||||
if (context.verbose ("new-id"))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, context.tdb2.next_id ()) + "\n";
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.id) + "\n";
|
||||
else if (context.verbose ("new-uuid"))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue