mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdAnnotate
- Now specifies that text modifications are required.
This commit is contained in:
parent
4ff9550580
commit
ef412d0588
1 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ int CmdAnnotate::execute (std::string& output)
|
|||
task->id,
|
||||
task->get ("description"));
|
||||
|
||||
task->modify (Task::modAnnotate);
|
||||
task->modify (Task::modAnnotate, true);
|
||||
|
||||
if (permission (*task, taskDifferences (before, *task) + question, filtered.size ()))
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ int CmdAnnotate::execute (std::string& output)
|
|||
std::vector <Task>::iterator sibling;
|
||||
for (sibling = siblings.begin (); sibling != siblings.end (); ++sibling)
|
||||
{
|
||||
sibling->modify (Task::modAnnotate);
|
||||
sibling->modify (Task::modAnnotate, true);
|
||||
context.tdb2.modify (*sibling);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_ANNO_TASK_R, *sibling);
|
||||
|
@ -106,7 +106,7 @@ int CmdAnnotate::execute (std::string& output)
|
|||
// Annotate the parent
|
||||
Task parent;
|
||||
context.tdb2.get (task->get ("parent"), parent);
|
||||
parent.modify (Task::modAnnotate);
|
||||
parent.modify (Task::modAnnotate, true);
|
||||
context.tdb2.modify (parent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue