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

Method order

atomic-core/src/output/mod.rs:234–249  ·  view source on GitHub ↗

Create a new order conflict. Order conflicts occur when multiple changes insert content at the same position with no clear ordering.

(
        path: String,
        inode_vertex: Position<NodeId>,
        line: usize,
        changes: Vec<Hash>,
        id: usize,
    )

Source from the content-addressed store, hash-verified

232 /// Order conflicts occur when multiple changes insert content at the
233 /// same position with no clear ordering.
234 pub fn order(
235 path: String,
236 inode_vertex: Position<NodeId>,
237 line: usize,
238 changes: Vec<Hash>,
239 id: usize,
240 ) -> Self {
241 Self {
242 conflict_type: ConflictType::Order,
243 path,
244 inode_vertex,
245 line,
246 changes,
247 id,
248 }
249 }
250
251 /// Create a new zombie conflict.
252 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected