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

Method new_delete

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

Source from the content-addressed store, hash-verified

179 /// ```
180 #[must_use]
181 pub fn new_delete(
182 local: Local,
183 encoding: Option<Encoding>,
184 deleted_lines: Vec<usize>,
185 old_start: usize,
186 ) -> Self {
187 Self {
188 kind: BuiltHunkKind::Delete,
189 local,
190 encoding,
191 content_start: None,
192 content_end: None,
193 deleted_lines,
194 old_start,
195 new_start: 0,
196 new_len: 0,
197 }
198 }
199
200 /// Create a new replacement graph_op.
201 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected