#pragma once #include #include #include // for operator+, to_string class UpdateListener : public efsw::FileWatchListener { public: bool changes = false; git_repository* repo = nullptr; UpdateListener(git_repository *r) : repo(r) {}; void handleFileAction(efsw::WatchID watchid, const std::string& dir, const std::string& filename, efsw::Action action, std::string oldFilename) override; void reset_state(); };