pub enum MergeStatus {
Reachable,
Content,
Unmerged {
unique: u64,
},
Unknown(String),
}Expand description
Why stmb will (or won’t) delete a feature branch — the verdict behind the human-readable line stmb prints before acting. Computed purely from repo state.
Variants§
Reachable
The feature tip is an ancestor of base — a normal merge-commit or
fast-forward merge. Safe to delete; git branch -d agrees.
Content
The tip is not reachable from base, but every commit on the branch has an
equivalent patch already in base (squash- or rebase-merged). Safe to delete;
git branch -d would wrongly refuse, so -D is used after this verdict.
Unmerged
unique commit(s) on the branch have no equivalent in base — genuine
unmerged work. stmb refuses to delete it.
Unknown(String)
stmb could not determine the answer (a git error / unparseable output). Fail-closed: treated like unmerged — refuse, never delete vacuously.
Implementations§
Trait Implementations§
Source§impl Debug for MergeStatus
impl Debug for MergeStatus
impl Eq for MergeStatus
Source§impl PartialEq for MergeStatus
impl PartialEq for MergeStatus
Source§fn eq(&self, other: &MergeStatus) -> bool
fn eq(&self, other: &MergeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeStatus
Auto Trait Implementations§
impl Freeze for MergeStatus
impl RefUnwindSafe for MergeStatus
impl Send for MergeStatus
impl Sync for MergeStatus
impl Unpin for MergeStatus
impl UnsafeUnpin for MergeStatus
impl UnwindSafe for MergeStatus
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<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
Compare self to
key and return true if they are equal.