Skip to main content

read_memstead_ref

Function read_memstead_ref 

Source
pub fn read_memstead_ref(git_dir: &Path) -> Result<Option<String>, VcsError>
Expand description

Resolve refs/heads/__MEMSTEAD (unified schemas + per-mem configs) in the mem-repo gitdir shared by every writable mem. Returns None when the ref does not exist — pre-migration workspaces and fresh repos legitimately have no __MEMSTEAD yet.