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

Method projected_span_edit

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

Create a semantic edit against a span projection without fabricating a historical trunk. The repository must validate the baseline against the dependency closure and apply the corresponding span operations.

(
        path: String,
        file: crate::change::span_patch::ExternalFile,
        baseline: crate::change::span_patch::SpanProjectionId,
    )

Source from the content-addressed store, hash-verified

218 /// historical trunk. The repository must validate the baseline against the
219 /// dependency closure and apply the corresponding span operations.
220 pub fn projected_span_edit(
221 path: String,
222 file: crate::change::span_patch::ExternalFile,
223 baseline: crate::change::span_patch::SpanProjectionId,
224 ) -> Self {
225 Self {
226 trunk_id: TrunkId::ROOT,
227 path,
228 trunk_op: Some(TrunkOp::ProjectedSpanEdit { file, baseline }),
229 line_ops: Vec::new(),
230 }
231 }
232
233 /// Returns the trunk ID.
234 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected