pub struct WorktreeFreshness {
pub dirty: bool,
pub digest: String,
}Expand description
A working-tree freshness reading: whether the tree is dirty and a stable content digest of the porcelain status (AUT6 / freshness gate).
The whole point: a commit SHA cannot detect uncommitted edits — two
different working trees can sit on the same HEAD. The digest does. A thin
client compares its local digest to the indexed one; if they differ the
warehouse is stale relative to the live tree.
Fields§
§dirty: booltrue ⇒ tracked modifications, staged changes, or untracked files exist.
digest: StringStable hex digest of the sorted porcelain status. Equals
CLEAN_WORKTREE_DIGEST when dirty == false.
Trait Implementations§
Source§impl Clone for WorktreeFreshness
impl Clone for WorktreeFreshness
Source§fn clone(&self) -> WorktreeFreshness
fn clone(&self) -> WorktreeFreshness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorktreeFreshness
impl Debug for WorktreeFreshness
impl Eq for WorktreeFreshness
Source§impl PartialEq for WorktreeFreshness
impl PartialEq for WorktreeFreshness
impl StructuralPartialEq for WorktreeFreshness
Auto Trait Implementations§
impl Freeze for WorktreeFreshness
impl RefUnwindSafe for WorktreeFreshness
impl Send for WorktreeFreshness
impl Sync for WorktreeFreshness
impl Unpin for WorktreeFreshness
impl UnsafeUnpin for WorktreeFreshness
impl UnwindSafe for WorktreeFreshness
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.