Struct git_global::Repo[][src]

pub struct Repo { /* fields omitted */ }

A git repository, represented by the full path to its base directory.

Implementations

impl Repo[src]

pub fn new(path: String) -> Repo[src]

pub fn as_git2_repo(&self) -> Repository[src]

Returns the git2::Repository equivalent of this repo.

pub fn path(&self) -> String[src]

Returns the full path to the repo as a String.

pub fn get_status_lines(&self, status_opts: StatusOptions) -> Vec<String>[src]

Returns “short format” status output.

pub fn get_stash_list(&self) -> Vec<String>[src]

Returns the list of stash entries for the repo.

Trait Implementations

impl Clone for Repo[src]

impl Display for Repo[src]

impl Eq for Repo[src]

impl Hash for Repo[src]

impl PartialEq<Repo> for Repo[src]

impl StructuralEq for Repo[src]

impl StructuralPartialEq for Repo[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.