Unified · Split
| @@ -1,9 +1,10 @@ | |||
| 1 | #![allow(missing_docs)] | ||
| 2 | |||
| 3 | use crate::PartialName; | 1 | use crate::PartialName; |
| 4 | use bstr::{BString, ByteSlice, ByteVec}; | 2 | use bstr::{BString, ByteSlice, ByteVec}; |
| 5 | use std::convert::TryInto; | 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 | pub fn expand<'a, Name, E>(namespace: Name) -> Result<crate::mutable::FullName, git_validate::refname::Error> | 8 | pub fn expand<'a, Name, E>(namespace: Name) -> Result<crate::mutable::FullName, git_validate::refname::Error> |
| 8 | where | 9 | where |
| 9 | Name: TryInto<PartialName<'a>, Error = E>, | 10 | Name: TryInto<PartialName<'a>, Error = E>, |