MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / restore

Method restore

atomic-core/src/change/ops.rs:719–727  ·  view source on GitHub ↗

Creates a line restore operation.

(branch_id: BranchId)

Source from the content-addressed store, hash-verified

717
718 /// Creates a line restore operation.
719 pub fn restore(branch_id: BranchId) -> Self {
720 Self {
721 branch_id,
722 operation: BranchOp::Restore { branch: branch_id },
723 old_line_num: None,
724 new_line_num: None,
725 content_range: None,
726 }
727 }
728
729 /// Creates a line modify operation (old content → new content).
730 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected