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

Method new_replace

atomic-core/src/record/workflow/graph_op/hunk.rs:226–244  ·  view source on GitHub ↗
(
        local: Local,
        encoding: Option<Encoding>,
        content_start: u64,
        content_end: u64,
        deleted_lines: Vec<usize>,
    )

Source from the content-addressed store, hash-verified

224 /// ```
225 #[must_use]
226 pub fn new_replace(
227 local: Local,
228 encoding: Option<Encoding>,
229 content_start: u64,
230 content_end: u64,
231 deleted_lines: Vec<usize>,
232 ) -> Self {
233 Self {
234 kind: BuiltHunkKind::Replace,
235 local,
236 encoding,
237 content_start: Some(content_start),
238 content_end: Some(content_end),
239 deleted_lines,
240 old_start: 0,
241 new_start: 0,
242 new_len: 0,
243 }
244 }
245
246 /// Create a new replace graph_op with line tracking.
247 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected