Skip to main content

undo

Function undo 

Source
pub fn undo(changes: &[Change]) -> Result<()>
Expand description

Puts the files changes wrote back as they were before, last change first. Nothing is written unless every file still holds what the changes left in it.

ยงErrors

UndoError::ChangedSince when a file was changed since, or the error of a write that failed.