pub enum UpdateMode {
New,
FastForward,
Forced,
UpToDate,
NoChangeNeeded,
NonFastForwardRejected,
TagUpdateRejected,
SourceObjectNotFound,
Unborn,
DeletedMissing,
}Expand description
How a single reference resolved during a fetch (or would resolve in a push).
Mirrors the shapes of gix::remote::fetch::refs::update::Mode that jj
already consumes, so the embedder’s translation layer stays a thin adapter.
Variants§
New
The local tracking ref did not exist and was created.
FastForward
The update advanced the ref along its existing history.
Forced
A non-fast-forward update that was applied because force was requested.
UpToDate
The local ref already matched the remote value; nothing to do.
NoChangeNeeded
No change was required (e.g. a no-op refspec).
NonFastForwardRejected
A non-fast-forward update that was rejected (force not requested).
TagUpdateRejected
A tag update was rejected (tags are not overwritten without force).
SourceObjectNotFound
The source object named by the refspec was not found on the remote.
Unborn
The remote ref is unborn (points at nothing yet).
DeletedMissing
A prune/delete was requested but the local ref was already missing.
Trait Implementations§
Source§impl Clone for UpdateMode
impl Clone for UpdateMode
Source§fn clone(&self) -> UpdateMode
fn clone(&self) -> UpdateMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for UpdateMode
Source§impl Debug for UpdateMode
impl Debug for UpdateMode
impl Eq for UpdateMode
Source§impl PartialEq for UpdateMode
impl PartialEq for UpdateMode
Source§fn eq(&self, other: &UpdateMode) -> bool
fn eq(&self, other: &UpdateMode) -> bool
self and other values to be equal, and is used by ==.