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

Method interaction_start_parent

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

Walk the interaction containing `rev` back along first-parents to its first delta, returning the rev the cursor would rest on after undoing this interaction, or `None` if that is the root (the earliest interaction, which is not undoable). Mirrors the boundary condition in [`undo`](Self::undo): stop when the parent is an `interaction_end` boundary or the root.

(&self, rev: Rev)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

can_undoMethod · 0.80

Calls 2

is_interaction_endMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected