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

Method new_changes

atomic-core/src/diff/inline.rs:450–452  ·  view source on GitHub ↗

Get only the changed hunks from the new line.

(&self)

Source from the content-addressed store, hash-verified

448
449 /// Get only the changed hunks from the new line.
450 pub fn new_changes(&self) -> impl Iterator<Item = &ChangeHunk> {
451 self.new_hunks.iter().filter(|s| s.is_change())
452 }
453
454 /// Count the number of changed hunks in the old line.
455 pub fn old_change_count(&self) -> usize {

Calls 2

iterMethod · 0.45
is_changeMethod · 0.45

Tested by 2