[][src]Struct gitstatusd::GitDetails

pub struct GitDetails {
    pub abspath: String,
    pub head_commit_hash: String,
    pub local_branch: String,
    pub upstream_branch: String,
    pub remote_name: String,
    pub remote_url: String,
    pub repository_state: String,
    pub num_files_in_index: u32,
    pub num_staged_changes: u32,
    pub num_unstaged_changes: u32,
    pub num_conflicted_changes: u32,
    pub num_untrached_files: u32,
    pub commits_ahead: u32,
    pub commits_behind: u32,
    pub num_stashes: u32,
    pub last_tag: String,
    pub num_unstaged_deleted: u32,
    pub num_staged_new: u32,
    pub num_staged_deleted: u32,
    pub push_remote_name: String,
    pub push_remote_url: String,
    pub commits_ahead_push_remote: u32,
    pub commits_behind_push_remote: u32,
    pub num_index_skip_worktree: u32,
    pub num_index_assume_unchanged: u32,
}

Details about git state.

Note: Renamed files are reported as deleted plus new.

Fields

abspath: String

Absolute path to the git repository workdir.

head_commit_hash: String

Commit hash that HEAD is pointing to. 40 hex digits.

local_branch: String

Local branch name or empty if not on a branch.

upstream_branch: String

Upstream branch name. Can be empty.

remote_name: String

The remote name, e.g. "upstream" or "origin".

remote_url: String

Remote URL. Can be empty.

repository_state: String

Repository state, A.K.A. action. Can be empty.

num_files_in_index: u32

The number of files in the index.

num_staged_changes: u32

The number of staged changes.

num_unstaged_changes: u32

The number of unstaged changes.

num_conflicted_changes: u32

The number of conflicted changes.

num_untrached_files: u32

The number of untracked files.

commits_ahead: u32

Number of commits the current branch is ahead of upstream.

commits_behind: u32

Number of commits the current branch is behind upstream.

num_stashes: u32

The number of stashes.

last_tag: String

The last tag (in lexicographical order) that points to the same commit as HEAD.

num_unstaged_deleted: u32

The number of unstaged deleted files.

num_staged_new: u32

The number of staged new files.

num_staged_deleted: u32

The number of staged deleted files.

push_remote_name: String

The push remote name, e.g. "upstream" or "origin".

push_remote_url: String

Push remote URL. Can be empty.

commits_ahead_push_remote: u32

Number of commits the current branch is ahead of push remote.

commits_behind_push_remote: u32

Number of commits the current branch is behind push remote.

num_index_skip_worktree: u32

Number of files in the index with skip-worktree bit set.

num_index_assume_unchanged: u32

Number of files in the index with assume-unchanged bit set.

Trait Implementations

impl Debug for GitDetails[src]

impl PartialEq<GitDetails> for GitDetails[src]

impl StructuralPartialEq for GitDetails[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.