pub enum PushRefStatus {
Ok,
UpToDate,
RejectNonFastForward,
RejectStale,
RejectRemoteUpdated,
RejectAlreadyExists,
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.
RejectRemoteUpdated
--force-if-includes: tracking ref was updated but not integrated.
RejectAlreadyExists
Non-forced tag update where the remote tag already exists.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
self and other values to be equal, and is used by ==.