Skip to main content

undo_last_mutation

Function undo_last_mutation 

Source
pub async fn undo_last_mutation(project_dir: &Path) -> Result<UndoOutcome>
Expand description

Revert the most recent completed board mutation.

The operation runs under the board write lock, serializing it against other writers just like an ordinary mutation. On the Git backend it creates a revert commit and returns the reverted subject; on backends without history it returns crate::error::Error::UndoUnsupported.