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

Method delete_modify

atomic-core/src/crdt/apply/conflict.rs:280–289  ·  view source on GitHub ↗

Creates a delete/modify conflict.

(deleted: ConflictEntity, modified: ConflictEntity)

Source from the content-addressed store, hash-verified

278
279 /// Creates a delete/modify conflict.
280 pub fn delete_modify(deleted: ConflictEntity, modified: ConflictEntity) -> Self {
281 Self {
282 kind: ConflictKind::DeleteModify,
283 description: format!("Entity {} deleted while {} was modified", deleted, modified),
284 entity: deleted,
285 other_entity: modified,
286 resolved: false,
287 resolution: None,
288 }
289 }
290
291 /// Creates a duplicate path conflict.
292 pub fn duplicate_path(path: String, trunk1: TrunkId, trunk2: TrunkId) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected