pub fn read_ref(mkit_dir: &Path, branch: &str) -> RefResult<Option<Hash>>Expand description
Read the hash a branch ref points to. Returns Ok(None) if the ref
file does not exist.
ยงErrors
RefError::InvalidRefNameifbranchdoes not validate.RefError::InvalidRefif the on-disk bytes are not a valid wire.