pub struct DeleteRisk {
pub uncommitted: bool,
pub unpushed_commits: u32,
pub unpushed_branches: u32,
pub linked_worktrees: u32,
}Expand description
What accepting a delete confirm gate will destroy in one Repo or Worktree, per
repo-management.md’s
“The confirm gate”: the facts the gate names per row, read fresh at the moment the gate is
built rather than folded out of Cells a Generation may have left stale. linked_worktrees
is meaningful on a Repo row alone; a Worktree row’s own gate line never names it, since
deleting one Worktree never touches its siblings.
Not a Cell and not part of the row summary fold: it is a fact of the instant it was read,
the same standing crate::InProgressOperation has, and it never reaches the table at
all. A row with uncommitted false and every count zero is the “listed plainly” case the
gate names with no risk line of its own.
Fields§
§uncommitted: boolWork that is not in a commit: anything DirtyCounts counts between the index and
the working tree, or anything staged between HEAD and the index. The second half is
what the dirty column does not ask about and what a delete most easily loses
(repo-management.md’s
confirm gate).
unpushed_commits: u32Commits on this Repo’s own local branches that no remote-tracking ref carries.
unpushed_branches: u32How many of its local branches carry at least one of those commits.
linked_worktrees: u32How many linked Worktrees point into this Repo, which deleting its working tree destroys along with it.
Trait Implementations§
Source§impl Clone for DeleteRisk
impl Clone for DeleteRisk
Source§fn clone(&self) -> DeleteRisk
fn clone(&self) -> DeleteRisk
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DeleteRisk
Source§impl Debug for DeleteRisk
impl Debug for DeleteRisk
impl Eq for DeleteRisk
Source§impl PartialEq for DeleteRisk
impl PartialEq for DeleteRisk
impl StructuralPartialEq for DeleteRisk
Auto Trait Implementations§
impl Freeze for DeleteRisk
impl RefUnwindSafe for DeleteRisk
impl Send for DeleteRisk
impl Sync for DeleteRisk
impl Unpin for DeleteRisk
impl UnsafeUnpin for DeleteRisk
impl UnwindSafe for DeleteRisk
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more