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

Method is_empty

atomic-core/src/change/change.rs:1459–1463  ·  view source on GitHub ↗

Check if this change has any hunks.

(&self)

Source from the content-addressed store, hash-verified

1457
1458 /// Check if this change has any hunks.
1459 pub fn is_empty(&self) -> bool {
1460 self.hunks.is_empty()
1461 && self.file_ops.is_empty()
1462 && self.span.as_ref().is_none_or(|span| span.ops.is_empty())
1463 }
1464
1465 /// Get the number of hunks.
1466 pub fn hunk_count(&self) -> usize {

Callers 5

has_file_opsMethod · 0.45
has_provenanceMethod · 0.45
serializeMethod · 0.45
deserializeMethod · 0.45
validate_v2Method · 0.45

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected