Skip to main content

Module commit

Module commit 

Source
Expand description

The commit — the sealed unit of edit, undo, and review: a labeled batch of ops. The Rev and wall time are assigned as the commit is applied and live outside the payload. Rationale: docs/doc-ng-design-notes.md.

Structs§

Commit
CommitBuilder
Accumulates one gesture’s ops into a sealed Commit. Push order is preserved verbatim — an op’s index is its Seq in the total write order, so the builder’s order is the merge-relevant order (and a pasted group’s internal stacking). Sealing consumes the builder, so a commit cannot be extended after the fact, and a gesture that edited nothing seals to None and submits nothing.

Enums§

CommitEnvelope