show undo diff (#3213)

Exposes undo operations via the C API, and uses those to show a (new, differently formatted) diff before committing the undo.
This commit is contained in:
ryneeverett 2024-02-09 22:11:14 -05:00 committed by GitHub
parent 89df80c9f0
commit 34c0e67469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 646 additions and 66 deletions

View file

@ -78,13 +78,15 @@ public:
void dump ();
void sync (tc::Server server, bool avoid_snapshots);
bool confirm_revert(struct tc::ffi::TCReplicaOpList);
private:
tc::Replica replica;
std::optional<tc::WorkingSet> _working_set;
const tc::WorkingSet &working_set ();
void show_diff (const std::string&, const std::string&, const std::string&);
static std::string option_string (std::string input);
static void show_diff (const std::string&, const std::string&, const std::string&);
};
#endif