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

Method add_hunk

atomic-repository/src/diff_engine.rs:635–637  ·  view source on GitHub ↗

Add a graph_op to this diff.

(&mut self, graph_op: DiffHunk)

Source from the content-addressed store, hash-verified

633
634 /// Add a graph_op to this diff.
635 pub fn add_hunk(&mut self, graph_op: DiffHunk) {
636 self.hunks.push(graph_op);
637 }
638
639 /// Update statistics based on hunks.
640 pub fn compute_stats(&mut self) {

Callers 6

change_file_diffsFunction · 0.45
change_file_diffs_withFunction · 0.45
make_change_with_hunkFunction · 0.45
record_with_lifecycleMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by 1

make_change_with_hunkFunction · 0.36