pub enum PushRefStatus {
Ok,
UpToDate,
RejectNonFastForward,
RejectStale,
RemoteReject(String),
AtomicPushFailed,
}Expand description
Per-ref outcome of a push, mirroring git’s enum ref_status so the CLI can
reproduce transport_print_push_status byte-for-byte. Ok covers create,
update, forced update, and delete (disambiguated by the old/new ids on the
owning PushReportRef); the remaining variants are the rejection reasons.
Variants§
Ok
The update was (or would be, under --dry-run) applied.
UpToDate
The ref was already at the requested value; nothing to do.
RejectNonFastForward
Local-side rejection: a non-forced non-fast-forward branch update.
RejectStale
--force-with-lease/--force-if-includes expectation was not met.
RemoteReject(String)
The receive-pack side reported ng <ref> <message>.
AtomicPushFailed
Part of an --atomic push that failed because a sibling ref was rejected.
Trait Implementations§
Source§impl Clone for PushRefStatus
impl Clone for PushRefStatus
Source§fn clone(&self) -> PushRefStatus
fn clone(&self) -> PushRefStatus
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 moreSource§impl Debug for PushRefStatus
impl Debug for PushRefStatus
impl Eq for PushRefStatus
Source§impl PartialEq for PushRefStatus
impl PartialEq for PushRefStatus
Source§fn eq(&self, other: &PushRefStatus) -> bool
fn eq(&self, other: &PushRefStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.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
Mutably borrows from an owned value. Read more