pub struct ShellGit;Expand description
Shell-based git operations.
This implementation executes git commands via the shell and parses their output.
Implementations§
Trait Implementations§
Source§impl GitOperations for ShellGit
impl GitOperations for ShellGit
Source§fn clone_repo(
&self,
url: &str,
target: &Path,
options: &CloneOptions,
) -> Result<(), GitError>
fn clone_repo( &self, url: &str, target: &Path, options: &CloneOptions, ) -> Result<(), GitError>
Clones a repository to the target path. Read more
Source§fn fetch(&self, repo_path: &Path) -> Result<FetchResult, GitError>
fn fetch(&self, repo_path: &Path) -> Result<FetchResult, GitError>
Fetches updates from the remote. Read more
Source§fn pull(&self, repo_path: &Path) -> Result<PullResult, GitError>
fn pull(&self, repo_path: &Path) -> Result<PullResult, GitError>
Pulls updates from the remote. Read more
Source§fn status(&self, repo_path: &Path) -> Result<RepoStatus, GitError>
fn status(&self, repo_path: &Path) -> Result<RepoStatus, GitError>
Gets the status of a local repository. Read more
Source§fn current_branch(&self, repo_path: &Path) -> Result<String, GitError>
fn current_branch(&self, repo_path: &Path) -> Result<String, GitError>
Gets the current branch name. Read more
impl Copy for ShellGit
Auto Trait Implementations§
impl Freeze for ShellGit
impl RefUnwindSafe for ShellGit
impl Send for ShellGit
impl Sync for ShellGit
impl Unpin for ShellGit
impl UnsafeUnpin for ShellGit
impl UnwindSafe for ShellGit
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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