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

Method is_root

atomic-core/src/record/context.rs:653–655  ·  view source on GitHub ↗

Check if this item is the repository root. # Returns `true` if this is the root item.

(&self)

Source from the content-addressed store, hash-verified

651 ///
652 /// `true` if this is the root item.
653 pub fn is_root(&self) -> bool {
654 self.inode == crate::types::Inode::ROOT && self.full_path.is_empty()
655 }
656
657 /// Set the parent position.
658 ///

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected