Unified · Split
| @@ -1,9 +1,10 @@ | ||
| 1 | −#![allow(missing_docs)] | |
| 2 | − | |
| 3 | 1 | use crate::PartialName; |
| 4 | 2 | use bstr::{BString, ByteSlice, ByteVec}; |
| 5 | 3 | use std::convert::TryInto; |
| 6 | 4 | |
| 5 | +/// Given a `namespace` 'foo we output 'refs/namespaces/foo', and given 'foo/bar' we output 'refs/namespaces/foo/refs/namespaces/bar'. | |
| 6 | +/// | |
| 7 | +/// For more information, consult the [git namespace documentation](https://git-scm.com/docs/gitnamespaces). | |
| 7 | 8 | pub fn expand<'a, Name, E>(namespace: Name) -> Result<crate::mutable::FullName, git_validate::refname::Error> |
| 8 | 9 | where |
| 9 | 10 | Name: TryInto<PartialName<'a>, Error = E>, |