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

Method undelete

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

Creates a file undelete operation.

(trunk_id: TrunkId, path: String)

Source from the content-addressed store, hash-verified

163
164 /// Creates a file undelete operation.
165 pub fn undelete(trunk_id: TrunkId, path: String) -> Self {
166 Self {
167 trunk_id,
168 path,
169 trunk_op: Some(TrunkOp::Undelete { trunk: trunk_id }),
170 line_ops: Vec::new(),
171 }
172 }
173
174 /// Creates a semantic mode attribute operation.
175 pub fn set_mode(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected