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

Method process_equal

atomic-core/src/record/workflow/graph_op/builder.rs:204–207  ·  view source on GitHub ↗

Process an equal (unchanged) region. Equal regions update position tracking but don't create changes. They may cause pending changes to be flushed if the gap is large enough. # Arguments `old_index` - Starting line in old content `new_index` - Starting line in new content `len` - Number of equal lines

(&mut self, old_index: usize, new_index: usize, len: usize)

Source from the content-addressed store, hash-verified

202 /// * `new_index` - Starting line in new content
203 /// * `len` - Number of equal lines
204 pub fn process_equal(&mut self, old_index: usize, new_index: usize, len: usize) {
205 self.old_line = old_index + len;
206 self.new_line = new_index + len;
207 }
208
209 /// Process an insertion.
210 ///

Callers 3

process_diff_opMethod · 0.80

Calls

no outgoing calls

Tested by 2