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

Method is_empty

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

Check if this change has any hunks.

(&self)

Source from the content-addressed store, hash-verified

1209
1210 /// Check if this change has any hunks.
1211 pub fn is_empty(&self) -> bool {
1212 self.hunks.is_empty()
1213 && self.file_ops.is_empty()
1214 && self.span.as_ref().is_none_or(|span| span.ops.is_empty())
1215 }
1216
1217 /// Get the number of hunks.
1218 pub fn hunk_count(&self) -> usize {

Callers 4

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

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected