pub struct GitIntegration;Expand description
Integrates with git for version control and auto-commit functionality
Implementations§
Source§impl GitIntegration
impl GitIntegration
Sourcepub fn check_status(repo_path: &Path) -> Result<GitStatus, FileError>
pub fn check_status(repo_path: &Path) -> Result<GitStatus, FileError>
Checks the git status of a repository
Returns information about modified, staged, and untracked files.
§Arguments
repo_path- Path to the git repository
§Returns
A GitStatus containing the current branch and file statuses
§Errors
Returns FileError::GitError if the repository cannot be opened or status cannot be checked
Sourcepub fn generate_commit_message(operations: &[FileOperation]) -> String
pub fn generate_commit_message(operations: &[FileOperation]) -> String
Trait Implementations§
Source§impl Clone for GitIntegration
impl Clone for GitIntegration
Source§fn clone(&self) -> GitIntegration
fn clone(&self) -> GitIntegration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitIntegration
impl Debug for GitIntegration
Auto Trait Implementations§
impl Freeze for GitIntegration
impl RefUnwindSafe for GitIntegration
impl Send for GitIntegration
impl Sync for GitIntegration
impl Unpin for GitIntegration
impl UnwindSafe for GitIntegration
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