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

Method new_edit

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

Source from the content-addressed store, hash-verified

106 /// ```
107 #[must_use]
108 pub fn new_edit(
109 local: Local,
110 encoding: Option<Encoding>,
111 content_start: u64,
112 content_end: u64,
113 ) -> Self {
114 Self {
115 kind: BuiltHunkKind::Insert,
116 local,
117 encoding,
118 content_start: Some(content_start),
119 content_end: Some(content_end),
120 deleted_lines: Vec::new(),
121 old_start: 0,
122 new_start: 0,
123 new_len: 0,
124 }
125 }
126
127 /// Create a new edit (insert) graph_op with line tracking.
128 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected