pub struct GitAnalyzer {
pub min_git_size: u64,
pub min_loose_objects: usize,
}Expand description
Git repository analyzer
Fields§
§min_git_size: u64Minimum .git size to report (default 100MB)
min_loose_objects: usizeMinimum loose objects to suggest gc
Implementations§
Source§impl GitAnalyzer
impl GitAnalyzer
Sourcepub fn scan(&self, root: &Path, max_depth: usize) -> Result<Vec<Recommendation>>
pub fn scan(&self, root: &Path, max_depth: usize) -> Result<Vec<Recommendation>>
Scan a directory for git repositories and analyze them
Sourcepub fn detect_lfs_cache(&self) -> Result<Vec<Recommendation>>
pub fn detect_lfs_cache(&self) -> Result<Vec<Recommendation>>
Detect Git LFS cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitAnalyzer
impl RefUnwindSafe for GitAnalyzer
impl Send for GitAnalyzer
impl Sync for GitAnalyzer
impl Unpin for GitAnalyzer
impl UnwindSafe for GitAnalyzer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more