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

Method set_revert

crates/opencode-session/src/session.rs:588–591  ·  view source on GitHub ↗

Set the revert information

(&mut self, revert: SessionRevert)

Source from the content-addressed store, hash-verified

586
587 /// Set the revert information
588 pub fn set_revert(&mut self, revert: SessionRevert) {
589 self.revert = Some(revert);
590 self.touch();
591 }
592
593 /// Clear the revert information
594 pub fn clear_revert(&mut self) {

Callers 2

session_revertFunction · 0.80
revertMethod · 0.80

Calls 4

publish_session_eventMethod · 0.80
touchMethod · 0.45
get_mutMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected