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

Method has_operations

atomic-core/src/apply/file_ops.rs:125–127  ·  view source on GitHub ↗

Returns true if any operations were applied.

(&self)

Source from the content-addressed store, hash-verified

123
124 /// Returns true if any operations were applied.
125 pub fn has_operations(&self) -> bool {
126 self.total_trunk_ops() > 0 || self.total_branch_ops() > 0 || self.total_leaf_ops() > 0
127 }
128
129 /// Add another stats value into this one.
130 pub fn merge(&mut self, other: ApplyFileOpsStats) {

Callers

nothing calls this directly

Calls 3

total_trunk_opsMethod · 0.45
total_branch_opsMethod · 0.45
total_leaf_opsMethod · 0.45

Tested by

no test coverage detected