pub fn name(path: &BStr) -> Result<&BStr, Error>
Validate a reference name running all the tests in the book. This disallows lower-case references, but allows ones like HEAD.
HEAD