pub fn reference_name<'a>(name: &str, storage: &'a mut [u8]) -> Result<&'a str>
Normalize HEAD, a full ref, or an unqualified branch into caller storage.