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

Method is_edit

atomic-core/src/change/ops.rs:253–255  ·  view source on GitHub ↗

Returns true if this is an edit (no trunk operation).

(&self)

Source from the content-addressed store, hash-verified

251
252 /// Returns true if this is an edit (no trunk operation).
253 pub fn is_edit(&self) -> bool {
254 self.trunk_op.is_none() && !self.line_ops.is_empty()
255 }
256
257 /// Consumes and returns the trunk operation.
258 pub fn into_trunk_op(self) -> Option<TrunkOp> {

Callers 1

process_modified_fileFunction · 0.45

Calls 2

is_noneMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected