pub fn parse(path: &BStr) -> Result<(Option<ForUser>, BString), Error>
Expand description
Parse user information from the given path
, returning (possible user information, adjusted input path)
.
Supported formats for user extraction are…
~/repopath
- the currently logged in user’s home.~user/repopath
- the repository in the given user’s home.