pub struct GitCli { /* private fields */ }Expand description
Git CLI command runner rooted at a repository.
Implementations§
Trait Implementations§
Source§impl CheckoutManager for GitCli
impl CheckoutManager for GitCli
Source§impl CherryPicker for GitCli
impl CherryPicker for GitCli
Source§fn cherry_pick(
&self,
commit: &str,
opts: Option<&CherryPickOptions>,
) -> AppResult<Oid>
fn cherry_pick( &self, commit: &str, opts: Option<&CherryPickOptions>, ) -> AppResult<Oid>
Cherry-picks the given commit.
Source§fn cherry_pick_continue(&self) -> AppResult<Oid>
fn cherry_pick_continue(&self) -> AppResult<Oid>
Continues an in-progress cherry-pick.
Source§fn cherry_pick_abort(&self) -> AppResult<()>
fn cherry_pick_abort(&self) -> AppResult<()>
Aborts an in-progress cherry-pick.
Source§impl ConfigReader for GitCli
impl ConfigReader for GitCli
Source§impl IgnoreReader for GitCli
impl IgnoreReader for GitCli
Source§impl Inspector for GitCli
impl Inspector for GitCli
Source§fn describe(&self, opts: Option<&DescribeOptions>) -> AppResult<String>
fn describe(&self, opts: Option<&DescribeOptions>) -> AppResult<String>
Describes the current revision in a human-readable form.
Source§fn rev_parse(&self, revision: &str) -> AppResult<Oid>
fn rev_parse(&self, revision: &str) -> AppResult<Oid>
Resolves a revision expression to an object ID.
Source§impl Maintainer for GitCli
impl Maintainer for GitCli
Source§impl Merger for GitCli
impl Merger for GitCli
Source§fn merge(
&self,
branch: &str,
opts: Option<&MergeOptions>,
) -> AppResult<MergeResult>
fn merge( &self, branch: &str, opts: Option<&MergeOptions>, ) -> AppResult<MergeResult>
Merges a branch into the current HEAD.
Source§fn abort_merge(&self) -> AppResult<()>
fn abort_merge(&self) -> AppResult<()>
Aborts an in-progress merge.
Source§fn merge_abort(&self) -> AppResult<()>
fn merge_abort(&self) -> AppResult<()>
Aborts an in-progress merge.
Source§impl Rebaser for GitCli
impl Rebaser for GitCli
Source§fn rebase(
&self,
onto: &str,
opts: Option<&RebaseOptions>,
) -> AppResult<RebaseResult>
fn rebase( &self, onto: &str, opts: Option<&RebaseOptions>, ) -> AppResult<RebaseResult>
Rebases the current branch onto another target.
Source§fn abort_rebase(&self) -> AppResult<()>
fn abort_rebase(&self) -> AppResult<()>
Aborts an in-progress rebase.
Source§fn continue_rebase(&self) -> AppResult<RebaseResult>
fn continue_rebase(&self) -> AppResult<RebaseResult>
Continues an in-progress rebase.
Source§fn rebase_abort(&self) -> AppResult<()>
fn rebase_abort(&self) -> AppResult<()>
Aborts an in-progress rebase.
Source§fn rebase_continue(&self) -> AppResult<RebaseResult>
fn rebase_continue(&self) -> AppResult<RebaseResult>
Continues an in-progress rebase.
Source§impl RefManager for GitCli
impl RefManager for GitCli
Source§fn list_branches(&self, filter: BranchFilter) -> AppResult<Vec<Branch>>
fn list_branches(&self, filter: BranchFilter) -> AppResult<Vec<Branch>>
Lists branches matching the requested filter.
Lists tags in the repository.
Source§fn create_branch(&self, name: &str, target: &str) -> AppResult<()>
fn create_branch(&self, name: &str, target: &str) -> AppResult<()>
Creates a local branch pointing at the given target revision.
Source§fn create_tag(
&self,
name: &str,
target: &str,
message: Option<&str>,
) -> AppResult<()>
fn create_tag( &self, name: &str, target: &str, message: Option<&str>, ) -> AppResult<()>
Creates a tag pointing at the given target revision.
Some(message) creates an annotated tag (with tagger and the given
message, which may be empty); None creates a lightweight tag (a plain
ref). Both backends must follow this convention.Source§impl RemoteManager for GitCli
impl RemoteManager for GitCli
Auto Trait Implementations§
impl Freeze for GitCli
impl RefUnwindSafe for GitCli
impl Send for GitCli
impl Sync for GitCli
impl Unpin for GitCli
impl UnsafeUnpin for GitCli
impl UnwindSafe for GitCli
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