pub struct GitEngine { /* private fields */ }Expand description
Git engine for repository operations.
Implementations§
Source§impl GitEngine
impl GitEngine
Sourcepub async fn get_head_commit(&self) -> Result<String>
pub async fn get_head_commit(&self) -> Result<String>
Sourcepub async fn get_remote_head(&self) -> Result<Option<String>>
pub async fn get_remote_head(&self) -> Result<Option<String>>
Sourcepub async fn fetch(&self) -> Result<FetchResult>
pub async fn fetch(&self) -> Result<FetchResult>
Sourcepub async fn pull(&self) -> Result<MergeResult>
pub async fn pull(&self) -> Result<MergeResult>
Sourcepub async fn push(&self) -> Result<PushResult>
pub async fn push(&self) -> Result<PushResult>
Sourcepub async fn has_changes(&self) -> Result<bool>
pub async fn has_changes(&self) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitEngine
impl !RefUnwindSafe for GitEngine
impl Send for GitEngine
impl Sync for GitEngine
impl Unpin for GitEngine
impl UnsafeUnpin for GitEngine
impl !UnwindSafe for GitEngine
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> 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