pub struct HandoffGitState {
pub branch: Option<String>,
pub head: Option<String>,
pub dirty: Vec<String>,
pub dirty_total: u32,
pub diff: Vec<String>,
}Expand description
The working tree as the brief reads it, from three cheap git probes.
Fields§
§branch: Option<String>The current branch, None outside a repository.
head: Option<String>HEAD in short form.
dirty: Vec<String>git status --porcelain lines, capped.
dirty_total: u32How many dirty paths there were before the cap, so the brief can say what it is not showing.
diff: Vec<String>git diff --stat lines.
Trait Implementations§
Source§impl Clone for HandoffGitState
impl Clone for HandoffGitState
Source§impl Debug for HandoffGitState
impl Debug for HandoffGitState
Source§impl Default for HandoffGitState
impl Default for HandoffGitState
Source§impl<'de> Deserialize<'de> for HandoffGitState
impl<'de> Deserialize<'de> for HandoffGitState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HandoffGitState
Source§impl PartialEq for HandoffGitState
impl PartialEq for HandoffGitState
Source§impl Serialize for HandoffGitState
impl Serialize for HandoffGitState
impl StructuralPartialEq for HandoffGitState
Auto Trait Implementations§
impl Freeze for HandoffGitState
impl RefUnwindSafe for HandoffGitState
impl Send for HandoffGitState
impl Sync for HandoffGitState
impl Unpin for HandoffGitState
impl UnsafeUnpin for HandoffGitState
impl UnwindSafe for HandoffGitState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.