History

[ref #152] docs

Sebastian Thiel committed 5 years ago

Commit 8d6c8561 parent bfb82fb1 file · +3 −2Browse files

Unified · Split

git-ref/src/namespace.rs+3−2
@@ -1,9 +1,10 @@
1−#![allow(missing_docs)]
2−
31 use crate::PartialName;
42 use bstr::{BString, ByteSlice, ByteVec};
53 use std::convert::TryInto;
64
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).
78 pub fn expand<'a, Name, E>(namespace: Name) -> Result<crate::mutable::FullName, git_validate::refname::Error>
89 where
910 Name: TryInto<PartialName<'a>, Error = E>,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t