mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Hooks
- ::onExit now provides a set of all changeѕ tasks to the hook script, in read-only form.
This commit is contained in:
parent
d0fd3bac4a
commit
bfc6e38851
3 changed files with 39 additions and 3 deletions
|
@ -103,6 +103,7 @@ public:
|
|||
void add (Task&, bool add_to_backlog = true);
|
||||
void modify (Task&, bool add_to_backlog = true);
|
||||
void commit ();
|
||||
void get_changes (std::vector <Task>&);
|
||||
void revert ();
|
||||
int gc ();
|
||||
int next_id ();
|
||||
|
@ -126,6 +127,7 @@ public:
|
|||
void dump ();
|
||||
|
||||
private:
|
||||
void gather_changes ();
|
||||
void update (const std::string&, Task&, const bool, std::vector <Task>&);
|
||||
bool verifyUniqueUUID (const std::string&);
|
||||
void show_diff (const std::string&, const std::string&, const std::string&);
|
||||
|
@ -141,8 +143,9 @@ public:
|
|||
TF2 backlog;
|
||||
|
||||
private:
|
||||
std::string _location;
|
||||
int _id;
|
||||
std::string _location;
|
||||
int _id;
|
||||
std::vector <Task> _changes;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue