Database: Now tracks the need to write data with ::_dirty

This commit is contained in:
Paul Beckingham 2016-03-20 12:39:57 -04:00
parent 2cd945e440
commit 8c74b0e1e9
2 changed files with 17 additions and 0 deletions

View file

@ -37,6 +37,7 @@ class Database
public:
Database () = default;
void initialize (const std::string&);
void commit ();
Interval getLatestInterval () const;
@ -53,6 +54,7 @@ private:
std::string _location {"~/.timewarrior/data"};
std::string _current {};
std::vector <Datafile> _files {};
bool _dirty {false};
};
#endif