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

Method zombie

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

Create a new zombie conflict. Zombie conflicts occur when content has been deleted by one change but modified by another.

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

Source from the content-addressed store, hash-verified

253 /// Zombie conflicts occur when content has been deleted by one change
254 /// but modified by another.
255 pub fn zombie(
256 path: String,
257 inode_vertex: Position<NodeId>,
258 line: usize,
259 changes: Vec<Hash>,
260 id: usize,
261 ) -> Self {
262 Self {
263 conflict_type: ConflictType::Zombie,
264 path,
265 inode_vertex,
266 line,
267 changes,
268 id,
269 }
270 }
271
272 /// Create a new cyclic conflict.
273 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected