MCPcopy Index your code
hub / github.com/GraphiteEditor/Graphite / commit_ops

Method commit_ops

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

Wrap each op as a `Delta`, apply it, and chain it onto the local history. One tick per op. Operates on the *retired snapshot*: reverses are computed against and forward ops applied to it, so each `reverse` captures the true pre-op value rather than the hot-polluted working state. The working registry already reflects these ops (they were staged as hot ops before retirement, or equal the snapshot

(&mut self, ops: impl IntoIterator<Item = RegistryDelta>, idempotent: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

retireMethod · 0.80
commit_op_for_testMethod · 0.80

Calls 10

size_hintMethod · 0.80
compute_reverse_deltaMethod · 0.80
tickMethod · 0.80
apply_op_withMethod · 0.80
into_iterMethod · 0.45
is_emptyMethod · 0.45
clearMethod · 0.45
containsMethod · 0.45
cloneMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected