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

Method is_add

atomic-core/src/record/item.rs:197–199  ·  view source on GitHub ↗

Check if this is an Add update. # Returns `true` if this represents a file addition.

(&self)

Source from the content-addressed store, hash-verified

195 ///
196 /// `true` if this represents a file addition.
197 pub fn is_add(&self) -> bool {
198 matches!(self, Self::Add { .. })
199 }
200
201 /// Check if this is a Deleted update.
202 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected