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
3use crate::PartialName;1use crate::PartialName;
4use bstr::{BString, ByteSlice, ByteVec};2use bstr::{BString, ByteSlice, ByteVec};
5use std::convert::TryInto;3use 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).
7pub fn expand<'a, Name, E>(namespace: Name) -> Result<crate::mutable::FullName, git_validate::refname::Error>8pub fn expand<'a, Name, E>(namespace: Name) -> Result<crate::mutable::FullName, git_validate::refname::Error>
8where9where
9 Name: TryInto<PartialName<'a>, Error = E>,10 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