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

Method can_undo

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

Whether there is a retired commit at `head` that can be undone in the silent zone (a commit after `last_broadcast_rev`). `head == 0` is the empty history; published commits aren't silently undoable (that needs a forward reverse-delta op, deferred until transport lands). The earliest interaction (the document's loaded/created base) is *not* undoable: undoing it would rewind into the pre-base state

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

undoMethod · 0.45

Calls 2

is_someMethod · 0.80

Tested by

no test coverage detected