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

Method edit

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

Creates an edit operation (modifying an existing file). This has no trunk operation, only line operations.

(trunk_id: TrunkId, path: String)

Source from the content-addressed store, hash-verified

206 ///
207 /// This has no trunk operation, only line operations.
208 pub fn edit(trunk_id: TrunkId, path: String) -> Self {
209 Self {
210 trunk_id,
211 path,
212 trunk_op: None,
213 line_ops: Vec::new(),
214 }
215 }
216
217 /// Create a semantic edit against a span projection without fabricating a
218 /// historical trunk. The repository must validate the baseline against the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected