pub struct RepoStore { /* private fields */ }Expand description
A store of discovered repositories under a root directory.
Implementations§
Source§impl RepoStore
impl RepoStore
Sourcepub fn discover(root: PathBuf, max_depth: u32) -> Result<Self>
pub fn discover(root: PathBuf, max_depth: u32) -> Result<Self>
Scan root recursively up to max_depth levels for bare git repositories.
max_depth = 0 means only repositories directly inside root.
max_depth = 3 means up to 3 levels of subdirectories below root.
Sourcepub fn resolve(&self, relative: &str) -> Result<&RepoInfo>
pub fn resolve(&self, relative: &str) -> Result<&RepoInfo>
Resolve a relative path to a RepoInfo.
Uses crate::path::resolve_repo_path for validation, then matches by
canonical absolute path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoStore
impl RefUnwindSafe for RepoStore
impl Send for RepoStore
impl Sync for RepoStore
impl Unpin for RepoStore
impl UnsafeUnpin for RepoStore
impl UnwindSafe for RepoStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more