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

Function build_ops

atomic-core/src/record/workflow/recipes/in_place_edit.rs:20–30  ·  view source on GitHub ↗

Build CRDT ops using the in-place line-edit strategy. Delegates to the existing implementation. Score from the detector is always at least 1, so this recipe is the fallback when no other recipe claims a higher score.

(ctx: &RecipeContext<'_>)

Source from the content-addressed store, hash-verified

18/// always at least 1, so this recipe is the fallback when no other
19/// recipe claims a higher score.
20pub fn build_ops(ctx: &RecipeContext<'_>) -> (FileOps, CrdtBuildStats) {
21 super::super::record::crdt::build_crdt_ops_for_modified_file(
22 ctx.path,
23 ctx.old_content,
24 ctx.new_content,
25 ctx.encoding,
26 ctx.algorithm,
27 ctx.existing_trunk_id,
28 ctx.existing_branches,
29 )
30}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected