pub fn undo(
fs: &impl Fs,
paths: &StorePaths,
doc_id: &str,
) -> Result<Option<Vec<u8>>, SessionError>Expand description
Undo: move HEAD to its parent snapshot. Returns the content now at HEAD, or
None if the session is empty or already at the root (nothing to undo). The
record we left is pushed onto the redo stack so redo can return to it.