add ops, start on text diffing and op gernation, no diffing yet

This commit is contained in:
2022-12-14 14:56:54 +01:00
parent cf91dfb61e
commit 04b5ed7c4f
2 changed files with 142 additions and 1 deletions

View File

@@ -35,6 +35,20 @@ struct List {
}
};
// almost the same as entry
struct OpAdd {
ListID id;
std::optional<ListID> parent_left;
std::optional<ListID> parent_right;
ValueType value;
};
struct OpDel {
ListID id;
};
// TODO: replace with SoA
struct Entry {
ListID id;