pub struct GitIntegrator { /* private fields */ }
Expand description
Git repository integration handler
Implementations§
Source§impl GitIntegrator
impl GitIntegrator
Sourcepub fn new<P: AsRef<Path>>(repo_path: P) -> Result<Self>
pub fn new<P: AsRef<Path>>(repo_path: P) -> Result<Self>
Create a new Git integrator for the given repository path
Sourcepub async fn list_tracked_files(&self) -> Result<Vec<PathBuf>>
pub async fn list_tracked_files(&self) -> Result<Vec<PathBuf>>
List all tracked files in the repository
Sourcepub async fn load_batch_file_statuses(&self) -> Result<()>
pub async fn load_batch_file_statuses(&self) -> Result<()>
Load all file statuses in a single batch operation for better performance
Sourcepub async fn get_file_info(&self, file_path: &Path) -> Result<GitFileInfo>
pub async fn get_file_info(&self, file_path: &Path) -> Result<GitFileInfo>
Get detailed file information including git status
Sourcepub async fn get_repository_stats(&self) -> Result<GitRepositoryStats>
pub async fn get_repository_stats(&self) -> Result<GitRepositoryStats>
Get comprehensive repository statistics
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clear all caches
Sourcepub fn files_discovered(&self) -> usize
pub fn files_discovered(&self) -> usize
Get number of files discovered through git
Sourcepub fn is_git_available(&self) -> bool
pub fn is_git_available(&self) -> bool
Check if git is available
Source§impl GitIntegrator
impl GitIntegrator
Sourcepub async fn analyze_diffs(
&self,
config: &DiffAnalysisConfig,
) -> Result<DiffAnalysisResult>
pub async fn analyze_diffs( &self, config: &DiffAnalysisConfig, ) -> Result<DiffAnalysisResult>
Perform comprehensive diff-based analysis
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GitIntegrator
impl !RefUnwindSafe for GitIntegrator
impl Send for GitIntegrator
impl Sync for GitIntegrator
impl Unpin for GitIntegrator
impl UnwindSafe for GitIntegrator
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