Skip to main content

resolve_head

Function resolve_head 

Source
pub fn resolve_head(void_dir: &Utf8Path) -> Result<Option<CommitCid>>
Expand description

Resolve HEAD to a CID (follows symbolic ref if needed). Returns None if HEAD doesn’t exist or points to non-existent branch.

§Errors

Returns VoidError::Io if file operations fail, or VoidError::CidError if CID parsing fails.