MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / revert

Function revert

crates/opencode-session/src/revert.rs:357–359  ·  view source on GitHub ↗
(input: &RevertInput, manager: &mut SessionManager)

Source from the content-addressed store, hash-verified

355}
356
357pub fn revert(input: &RevertInput, manager: &mut SessionManager) -> Result<Option<Session>> {
358 RevertManager::default().revert(input, manager)
359}
360
361pub fn unrevert(session_id: &str, manager: &mut SessionManager) -> Result<Option<Session>> {
362 RevertManager::default().unrevert(session_id, manager)

Callers

nothing calls this directly

Calls 1

revertMethod · 0.45

Tested by

no test coverage detected