feat: add mark_saved

This commit is contained in:
ThetaDev 2023-03-13 18:43:56 +01:00
parent cb1fb40a04
commit e6e8184430

View file

@ -698,6 +698,11 @@ impl Automerge {
bytes
}
/// Mark the document as saved
pub fn mark_saved(&mut self) {
self.saved = self.get_heads();
}
/// Save the changes since the last call to [Self::save`]
///
/// The output of this will not be a compressed document format, but a series of individual