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

Method old_changes

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

Get only the changed hunks from the old line.

(&self)

Source from the content-addressed store, hash-verified

443
444 /// Get only the changed hunks from the old line.
445 pub fn old_changes(&self) -> impl Iterator<Item = &ChangeHunk> {
446 self.old_hunks.iter().filter(|s| s.is_change())
447 }
448
449 /// Get only the changed hunks from the new line.
450 pub fn new_changes(&self) -> impl Iterator<Item = &ChangeHunk> {

Calls 2

iterMethod · 0.45
is_changeMethod · 0.45

Tested by 2