pub enum PushRefStatus {
UpToDate,
Ok,
RejectNonFastForward,
RejectAlreadyExists,
RejectFetchFirst,
RejectNeedsForce,
RejectStale,
RemoteRejected,
RejectRemoteRefMissing,
AtomicPushFailed,
}Expand description
The resolved outcome of a single reference update during a push.
Variants§
UpToDate
The reference was already at the requested value (=, [up to date]).
Ok
A successful update (* new, - delete, fast-forward, + forced).
RejectNonFastForward
Client-side rejection: the update is not a fast-forward and --force
was not given (!, [rejected] (non-fast-forward)).
RejectAlreadyExists
Rejected because the new ref already exists (!, [rejected] (already exists)).
RejectFetchFirst
Rejected because the remote has the ref but we need to fetch first.
RejectNeedsForce
Rejected because a forced update is required.
RejectStale
Rejected because force-with-lease found stale info.
RemoteRejected
The remote receive-pack declined the update (!, [remote rejected] (<reason>)).
RejectRemoteRefMissing
Client-side rejection: a delete was requested but the ref is absent on the remote
(!, [rejected] (remote ref does not exist)).
AtomicPushFailed
Part of an atomic push that failed because another ref was rejected
(!, [rejected] (atomic push failed)).
Implementations§
Trait Implementations§
Source§impl Clone for PushRefStatus
impl Clone for PushRefStatus
Source§impl Debug for PushRefStatus
impl Debug for PushRefStatus
impl Eq for PushRefStatus
Source§impl PartialEq for PushRefStatus
impl PartialEq for PushRefStatus
impl StructuralPartialEq for PushRefStatus
Auto Trait Implementations§
impl Freeze for PushRefStatus
impl RefUnwindSafe for PushRefStatus
impl Send for PushRefStatus
impl Sync for PushRefStatus
impl Unpin for PushRefStatus
impl UnsafeUnpin for PushRefStatus
impl UnwindSafe for PushRefStatus
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§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.