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

Method new_edit_with_lines

atomic-core/src/record/workflow/graph_op/hunk.rs:137–155  ·  view source on GitHub ↗
(
        local: Local,
        encoding: Option<Encoding>,
        old_start: usize,
        new_start: usize,
        new_len: usize,
    )

Source from the content-addressed store, hash-verified

135 /// * `new_len` - Number of lines in new content
136 #[must_use]
137 pub fn new_edit_with_lines(
138 local: Local,
139 encoding: Option<Encoding>,
140 old_start: usize,
141 new_start: usize,
142 new_len: usize,
143 ) -> Self {
144 Self {
145 kind: BuiltHunkKind::Insert,
146 local,
147 encoding,
148 content_start: None,
149 content_end: None,
150 deleted_lines: Vec::new(),
151 old_start,
152 new_start,
153 new_len,
154 }
155 }
156
157 /// Create a new deletion graph_op.
158 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected