[][src]Struct glitter_lang::git::Stats

pub struct Stats {
    pub untracked: u16,
    pub added_staged: u16,
    pub modified: u16,
    pub modified_staged: u16,
    pub renamed: u16,
    pub deleted: u16,
    pub deleted_staged: u16,
    pub ahead: u16,
    pub behind: u16,
    pub conflicts: u16,
    pub stashes: u16,
    pub branch: String,
    pub remote: String,
}

Stats which the interpreter uses to populate the gist expression

Fields

untracked: u16

Number of untracked files which are new to the repository

added_staged: u16

Number of files to be added

modified: u16

Number of modified files which have not yet been staged

modified_staged: u16

Number of staged changes to files

renamed: u16

Number of renamed files

deleted: u16

Number of deleted files

deleted_staged: u16

Number of staged deletions

ahead: u16

Number of commits ahead of the upstream branch

behind: u16

Number of commits behind the upstream branch

conflicts: u16

Number of unresolved conflicts in the repository

stashes: u16

Number of stashes on the current branch

branch: String

The branch name or other stats of the HEAD pointer

remote: String

The of the upstream branch

Methods

impl Stats[src]

pub fn new(repo: &mut Repository) -> Stats[src]

Populate stats with the status of the given repository

Trait Implementations

impl Eq for Stats[src]

impl Default for Stats[src]

impl Clone for Stats[src]

impl PartialEq<Stats> for Stats[src]

impl AddAssign<Stats> for Stats[src]

impl Debug for Stats[src]

Auto Trait Implementations

impl Send for Stats

impl Unpin for Stats

impl Sync for Stats

impl UnwindSafe for Stats

impl RefUnwindSafe for Stats

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]