[][src]Struct glint::Git

pub struct Git { /* fields omitted */ }

Methods

impl Git[src]

pub fn from_cwd() -> Result<Self, GitError>[src]

pub fn commit<I>(
    &self,
    message: &str,
    other_args: impl IntoIterator<Item = I>
) -> Command where
    I: AsRef<OsStr>, 
[src]

pub fn add<I>(&self, files: impl IntoIterator<Item = I>) -> Command where
    I: AsRef<OsStr>, 
[src]

Stages files using git add. Run from the repo root.gs

pub fn diff_less<I>(&self, files: impl IntoIterator<Item = I>) -> Result<()> where
    I: AsRef<OsStr>, 
[src]

pub fn status(&self) -> Result<GitStatus>[src]

Trait Implementations

impl Clone for Git[src]

impl Debug for Git[src]

Auto Trait Implementations

impl Unpin for Git

impl Sync for Git

impl Send for Git

impl UnwindSafe for Git

impl RefUnwindSafe for Git

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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