Struct simpler_git::LocalRepository[][src]

pub struct LocalRepository {
    pub inner: Repository,
}

Fields

inner: Repository

Implementations

impl LocalRepository[src]

pub fn pull<F>(
    &mut self,
    branch_name: &str,
    credential: Option<F>
) -> Result<(), Error> where
    F: Fn() -> Result<Cred, Error>, 
[src]

pub fn add_all(&mut self) -> Result<Oid, Error>[src]

pub fn commit(
    &mut self,
    tree_id: Oid,
    message: &str,
    signature: Signature<'_>
) -> Result<(), Error>
[src]

pub fn push<F>(&mut self, credential: F, branch_name: &str) -> Result<(), Error> where
    F: Fn() -> Result<Cred, Error>, 
[src]

Auto Trait Implementations

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, 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.