Struct git_global::Repo
source · pub struct Repo { /* private fields */ }
Expand description
A git repository, represented by the full path to its base directory.
Implementations§
source§impl Repo
impl Repo
pub fn new(path: String) -> Repo
sourcepub fn as_git2_repo(&self) -> Repository
pub fn as_git2_repo(&self) -> Repository
Returns the git2::Repository
equivalent of this repo.
sourcepub fn get_status_lines(&self, status_opts: StatusOptions) -> Vec<String>
pub fn get_status_lines(&self, status_opts: StatusOptions) -> Vec<String>
Returns “short format” status output.
sourcepub fn is_ahead(&self) -> bool
pub fn is_ahead(&self) -> bool
Returns true if commits of local branches are ahead of those on remote branches
sourcepub fn get_stash_list(&self) -> Vec<String>
pub fn get_stash_list(&self) -> Vec<String>
Returns the list of stash entries for the repo.
Trait Implementations§
source§impl PartialEq<Repo> for Repo
impl PartialEq<Repo> for Repo
impl Eq for Repo
impl StructuralEq for Repo
impl StructuralPartialEq for Repo
Auto Trait Implementations§
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin 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