mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Hooks: Make sure that original task is properly detected
On modify event uses UUID of the original task being modified to determine which line should be interpreted as modification of the task. This was achieved by searching by a substring in a specific JSON format, which, consenquently, failed on JSON strings of other (valid) formats.
This commit is contained in:
parent
5e90510530
commit
8683574b18
2 changed files with 27 additions and 2 deletions
|
@ -52,6 +52,7 @@ public:
|
|||
private:
|
||||
std::vector <std::string> scripts (const std::string&);
|
||||
bool isJSON (const std::string&) const;
|
||||
bool JSONContainsUUID (const std::string&, const std::string&) const;
|
||||
int callHookScript (const std::string&, const std::vector <std::string>&, std::vector <std::string>&);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue