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