pub struct Repo { /* private fields */ }Expand description
Repository facade that combines embedded and CLI capabilities.
Trait Implementations§
Source§impl CheckoutManager for Repo
impl CheckoutManager for Repo
Source§impl CherryPicker for Repo
impl CherryPicker for Repo
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 Repo
impl ConfigReader for Repo
Source§impl Differ for Repo
impl Differ for Repo
Source§impl IgnoreReader for Repo
impl IgnoreReader for Repo
Source§impl IndexManager for Repo
impl IndexManager for Repo
Source§fn stage(&self, paths: &[&str]) -> AppResult<()>
fn stage(&self, paths: &[&str]) -> AppResult<()>
Stages the provided repository-relative paths.
Source§fn unstage(&self, paths: &[&str]) -> AppResult<()>
fn unstage(&self, paths: &[&str]) -> AppResult<()>
Removes the provided repository-relative paths from the index.
Source§fn staged_entries(&self) -> AppResult<Vec<StatusEntry>>
fn staged_entries(&self) -> AppResult<Vec<StatusEntry>>
Lists entries that currently differ between HEAD and the index.
Source§impl IndexReader for Repo
impl IndexReader for Repo
Source§fn index_entry(&self, path: &str) -> AppResult<Option<IndexEntry>>
fn index_entry(&self, path: &str) -> AppResult<Option<IndexEntry>>
Returns the index entry for
path, if the path is present in the index.Source§impl Inspector for Repo
impl Inspector for Repo
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 LogReader for Repo
impl LogReader for Repo
Source§impl Maintainer for Repo
impl Maintainer for Repo
Source§impl Merger for Repo
impl Merger for Repo
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 Repo
impl Rebaser for Repo
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 Repo
impl RefManager for Repo
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 Repo
impl RemoteManager for Repo
Source§impl Repository for Repo
impl Repository for Repo
Source§impl Stasher for Repo
impl Stasher for Repo
Source§fn stash_pop_index(&self, index: usize) -> AppResult<()>
fn stash_pop_index(&self, index: usize) -> AppResult<()>
Applies and drops the selected stash entry.
Source§fn stash_list(&self) -> AppResult<Vec<StashEntry>>
fn stash_list(&self) -> AppResult<Vec<StashEntry>>
Lists stash entries.
Source§impl TreeReader for Repo
impl TreeReader for Repo
Auto Trait Implementations§
impl !Sync for Repo
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Unpin for Repo
impl UnsafeUnpin for Repo
impl UnwindSafe for Repo
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