pub enum SkipReason {
DetachedHead,
NotAWorktree,
NoRemote,
DefaultBranchForcePush,
}Expand description
Why a worktree was skipped rather than pushed.
A dirty worktree is deliberately absent: a push publishes commits, not the working tree, so uncommitted changes are no reason to refuse one.
Variants§
DetachedHead
A detached or unborn HEAD — there is no branch to publish. This is also what covers a worktree sitting mid-rebase, whose HEAD is detached.
NotAWorktree
The path is not a git worktree.
NoRemote
The branch tracks no upstream and the repository has no remote to publish to, so there is no destination to create one on.
DefaultBranchForcePush
The branch is the repository’s remote default branch and the push would be
a non-fast-forward. Refused outright: a rebase is local and
git reflog-recoverable, but force-pushing the default branch publishes
that rewrite to everyone (ADR-0061).
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
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 SkipReason
Source§impl Debug for SkipReason
impl Debug for SkipReason
impl Eq for SkipReason
Source§impl PartialEq for SkipReason
impl PartialEq for SkipReason
Source§impl Serialize for SkipReason
impl Serialize for SkipReason
impl StructuralPartialEq for SkipReason
Auto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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.