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

Method new

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

Creates a new file operation container. Use this when you have both the trunk operation and will add line ops later.

(trunk_id: TrunkId, path: String, trunk_op: Option<TrunkOp>)

Source from the content-addressed store, hash-verified

114 ///
115 /// Use this when you have both the trunk operation and will add line ops later.
116 pub fn new(trunk_id: TrunkId, path: String, trunk_op: Option<TrunkOp>) -> Self {
117 Self {
118 trunk_id,
119 path,
120 trunk_op,
121 line_ops: Vec::new(),
122 }
123 }
124
125 /// Creates a file creation operation.
126 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected