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

Method is_unchanged

atomic-core/src/diff/display.rs:548–553  ·  view source on GitHub ↗

Check if this pair represents unchanged content.

(&self)

Source from the content-addressed store, hash-verified

546
547 /// Check if this pair represents unchanged content.
548 pub fn is_unchanged(&self) -> bool {
549 matches!(
550 (&self.old_line, &self.new_line),
551 (Some(old), Some(new)) if old.status == LineStatus::Unchanged && new.status == LineStatus::Unchanged
552 )
553 }
554}
555
556/// Iterator over line pairs in a side-by-side diff.

Callers 1

has_changesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected