mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #762
- Fixed bug #762, so that modifications to task are considered 'write' commands, and there update shadow files (thanks to Aikido Guy).
This commit is contained in:
parent
4584da8895
commit
58f2b9789e
4 changed files with 7 additions and 2 deletions
1
AUTHORS
1
AUTHORS
|
@ -87,4 +87,5 @@ suggestions:
|
||||||
Pete Lewis
|
Pete Lewis
|
||||||
Bryce Harrington
|
Bryce Harrington
|
||||||
Stefan Hacker
|
Stefan Hacker
|
||||||
|
Alan Barton
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,8 @@
|
||||||
are quoted (thanks to Duane Waddle).
|
are quoted (thanks to Duane Waddle).
|
||||||
+ Applied patch for Bug #746, which added missing documentation for the 'entry'
|
+ Applied patch for Bug #746, which added missing documentation for the 'entry'
|
||||||
report column (thanks to Duane Waddle).
|
report column (thanks to Duane Waddle).
|
||||||
|
+ Fixed bug #762, so that modifications to task are considered 'write' commands,
|
||||||
|
and there update shadow files (thanks to Aikido Guy).
|
||||||
|
|
||||||
# Untracked Bugs, biggest first.
|
# Untracked Bugs, biggest first.
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,9 @@ int Context::dispatch (std::string &out)
|
||||||
else { rc = shortUsage (out); }
|
else { rc = shortUsage (out); }
|
||||||
|
|
||||||
// Only update the shadow file if such an update was not suppressed (shadow),
|
// Only update the shadow file if such an update was not suppressed (shadow),
|
||||||
if (cmd.isWriteCommand () && !inShadow)
|
if ((cmd.isWriteCommand () ||
|
||||||
|
(cmd.command == "" && sequence.size ())) &&
|
||||||
|
!inShadow)
|
||||||
shadow ();
|
shadow ();
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -67,7 +67,7 @@ int handleCustomReport (const std::string& report, std::string& outs)
|
||||||
split (labels, reportLabels, ',');
|
split (labels, reportLabels, ',');
|
||||||
|
|
||||||
if (columns.size () != labels.size () && labels.size () != 0)
|
if (columns.size () != labels.size () && labels.size () != 0)
|
||||||
throw std::string ("There are a different number of columns than labels ") +
|
throw std::string ("There are a different number of columns and labels ") +
|
||||||
"for report '" + report + "'.";
|
"for report '" + report + "'.";
|
||||||
|
|
||||||
std::map <std::string, std::string> columnLabels;
|
std::map <std::string, std::string> columnLabels;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue