pub struct GitRelay { /* private fields */ }Expand description
๐ Git relay with smart compression and context awareness
Implementationsยง
Sourceยงimpl GitRelay
impl GitRelay
Sourcepub fn execute(
&self,
repo_path: &Path,
operation: GitOperation,
args: &[String],
context: Option<&TaskContext>,
) -> Result<GitRelayResponse>
pub fn execute( &self, repo_path: &Path, operation: GitOperation, args: &[String], context: Option<&TaskContext>, ) -> Result<GitRelayResponse>
๐ Execute git command with smart compression
Sourcepub fn smart_status(
&self,
repo_path: &Path,
context: Option<&TaskContext>,
) -> Result<GitRelayResponse>
pub fn smart_status( &self, repo_path: &Path, context: Option<&TaskContext>, ) -> Result<GitRelayResponse>
๐ Smart git status with context awareness
Sourcepub fn smart_log(
&self,
repo_path: &Path,
limit: Option<usize>,
context: Option<&TaskContext>,
) -> Result<GitRelayResponse>
pub fn smart_log( &self, repo_path: &Path, limit: Option<usize>, context: Option<&TaskContext>, ) -> Result<GitRelayResponse>
๐ Smart git log with relevance filtering
Sourcepub fn smart_diff(
&self,
repo_path: &Path,
target: Option<&str>,
context: Option<&TaskContext>,
) -> Result<GitRelayResponse>
pub fn smart_diff( &self, repo_path: &Path, target: Option<&str>, context: Option<&TaskContext>, ) -> Result<GitRelayResponse>
๐ Smart git diff with context filtering
Sourcepub fn smart_branches(
&self,
repo_path: &Path,
context: Option<&TaskContext>,
) -> Result<GitRelayResponse>
pub fn smart_branches( &self, repo_path: &Path, context: Option<&TaskContext>, ) -> Result<GitRelayResponse>
๐ฟ Smart branch information
Sourcepub fn smart_remotes(
&self,
repo_path: &Path,
context: Option<&TaskContext>,
) -> Result<GitRelayResponse>
pub fn smart_remotes( &self, repo_path: &Path, context: Option<&TaskContext>, ) -> Result<GitRelayResponse>
๐ Smart remote information
Sourcepub fn custom_command(
&self,
repo_path: &Path,
command: &str,
args: &[String],
context: Option<&TaskContext>,
) -> Result<GitRelayResponse>
pub fn custom_command( &self, repo_path: &Path, command: &str, args: &[String], context: Option<&TaskContext>, ) -> Result<GitRelayResponse>
๐ฏ Execute custom git command with compression
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for GitRelay
impl RefUnwindSafe for GitRelay
impl Send for GitRelay
impl Sync for GitRelay
impl Unpin for GitRelay
impl UnsafeUnpin for GitRelay
impl UnwindSafe for GitRelay
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.Sourceยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
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