pub struct GitWorkView {
pub default_branch: Option<String>,
pub worktree: Option<GitDiffStats>,
pub ahead: Option<GitBranchAhead>,
pub base: Option<BaseState>,
pub base_error: Option<String>,
}Expand description
The tree behind a git row’s depth, bundled: what a hover over the row draws beyond the branch and the count.
None layers read as nothing to state - a clean tree, an unscanned
one - the same way LayerState means it; the row above still
carries the gate that says which.
Fields§
§default_branch: Option<String>The branch this tree is measured against, when it resolved; the
row names it (3 commits vs main) and hides itself when this
tree IS it.
worktree: Option<GitDiffStats>The uncommitted files, with marks and counts.
ahead: Option<GitBranchAhead>The branch’s chain ahead of its default.
base: Option<BaseState>What the seat’s last watch refresh found for the base the chain is
measured against, None until one has run. A base can move without
the count or the chain moving: the range is base..HEAD, so an
upstream advance the branch does not contain leaves the branch’s own
commits exactly as they were, and this is the only field that says so.
base_error: Option<String>Git’s own words for a base refresh that could not run, beside the state it left. The reason rides the row so a page that hears a failed check learns why from the frame rather than only from its next read, and so a failure with new words is news even when the state is the one already drawn. Absent on records from an older server.
Trait Implementations§
Source§impl Clone for GitWorkView
impl Clone for GitWorkView
Source§impl Debug for GitWorkView
impl Debug for GitWorkView
Source§impl Default for GitWorkView
impl Default for GitWorkView
Source§impl<'de> Deserialize<'de> for GitWorkView
impl<'de> Deserialize<'de> for GitWorkView
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>,
impl Eq for GitWorkView
Source§impl PartialEq for GitWorkView
impl PartialEq for GitWorkView
Source§impl Serialize for GitWorkView
impl Serialize for GitWorkView
impl StructuralPartialEq for GitWorkView
Auto Trait Implementations§
impl Freeze for GitWorkView
impl RefUnwindSafe for GitWorkView
impl Send for GitWorkView
impl Sync for GitWorkView
impl Unpin for GitWorkView
impl UnsafeUnpin for GitWorkView
impl UnwindSafe for GitWorkView
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
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
§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
key and return true if they are equal.