pub fn name(bytes: &BStr) -> Result<&BStr, Error>
Assure the given bytes resemble a valid git ref name, which are returned unchanged on success.
bytes