pub enum AncestorStatus {
Ancestor,
Diverged,
RefAbsent,
}Expand description
Result of checking whether origin/main is already an ancestor of
HEAD — i.e. whether scripts/sync-main-to-develop.sh would be a no-op
— WITHOUT issuing any git fetch (20d, review: Codex HIGH — a
“read-only” preflight must not depend on the network).
Variants§
Ancestor
origin/main is an ancestor of HEAD — sync would be a no-op.
Diverged
origin/main resolves locally but is NOT an ancestor of HEAD —
develop has diverged and scripts/sync-main-to-develop.sh should be
run before cutting the next release.
RefAbsent
origin/main does not resolve locally at all (never fetched, or no
remote configured). Distinct from Diverged so
the caller can degrade to an actionable “run git fetch first”
message instead of reporting a false divergence.
Trait Implementations§
Source§impl Clone for AncestorStatus
impl Clone for AncestorStatus
Source§fn clone(&self) -> AncestorStatus
fn clone(&self) -> AncestorStatus
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 moreimpl Copy for AncestorStatus
Source§impl Debug for AncestorStatus
impl Debug for AncestorStatus
impl Eq for AncestorStatus
Source§impl PartialEq for AncestorStatus
impl PartialEq for AncestorStatus
impl StructuralPartialEq for AncestorStatus
Auto Trait Implementations§
impl Freeze for AncestorStatus
impl RefUnwindSafe for AncestorStatus
impl Send for AncestorStatus
impl Sync for AncestorStatus
impl Unpin for AncestorStatus
impl UnsafeUnpin for AncestorStatus
impl UnwindSafe for AncestorStatus
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§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.