pub fn read_head(layout: &RepoLayout) -> RefResult<Head>Expand description
Read this worktree’s HEAD.
§Errors
RefError::NoHeadif the file is missing.RefError::InvalidHeadfor malformed content.
pub fn read_head(layout: &RepoLayout) -> RefResult<Head>Read this worktree’s HEAD.
RefError::NoHead if the file is missing.RefError::InvalidHead for malformed content.