MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / undo

Method undo

document/graph-storage/src/session.rs:372–400  ·  view source on GitHub ↗

Silent-zone undo of one *interaction*: revert deltas walking `head` back along first-parents until it reaches the previous interaction boundary (a delta marked `interaction_end`) or the empty root. One interaction spans several deltas (one `commit_from_runtime` batch), so undo reverts the whole run, not a single delta — matching the legacy per-interaction undo granularity. The undone interaction's

(&mut self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 6

revert_deltaMethod · 0.80
is_interaction_endMethod · 0.80
getMethod · 0.65
can_undoMethod · 0.45
cloneMethod · 0.45
pushMethod · 0.45