pub enum PushPlanError {
Show 15 variants
DetachedHeadNoRefspec,
NoCommits,
NoTags,
PushDefaultNothing,
NoRemote,
UnknownRemote(String),
InvalidRefspec {
spec: String,
reason: String,
},
SrcRefspecNoMatch {
spec: String,
},
SrcRefspecAmbiguous {
spec: String,
},
DstRefspecAmbiguous {
spec: String,
},
UnknownRevision {
spec: String,
},
LeaseValueRequiresSingleRef,
DeleteNotPlainName {
spec: String,
},
DeleteWithoutRefs,
Message(String),
}Expand description
Errors while planning a push (typed; no stringly matching in callers).
Variants§
DetachedHeadNoRefspec
Detached HEAD with no refspec on the command line.
NoCommits
Current branch exists but has no commits.
NoTags
--tags was given but there are no local tags.
PushDefaultNothing
push.default = nothing blocks an empty refspec push.
NoRemote
No remote was named and none is configured: the branch has no push remote or remote,
remote.pushDefault is unset and there is no origin with a URL.
UnknownRemote(String)
Named remote is missing from config.
InvalidRefspec
Malformed refspec string.
SrcRefspecNoMatch
Source side did not match any local ref or object.
SrcRefspecAmbiguous
Source side matched more than one local ref.
DstRefspecAmbiguous
Short destination matched multiple remote refs.
UnknownRevision
Revision text could not be resolved to an object.
LeaseValueRequiresSingleRef
--force-with-lease=<rev> with more than one ref update.
DeleteNotPlainName
A delete push was given a refspec (src:dst) instead of a plain remote ref name.
DeleteWithoutRefs
A delete push named no ref to delete.
Message(String)
Other planning failure.
Trait Implementations§
Source§impl Debug for PushPlanError
impl Debug for PushPlanError
Source§impl Display for PushPlanError
impl Display for PushPlanError
impl Eq for PushPlanError
Source§impl Error for PushPlanError
impl Error for PushPlanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for PushPlanError
impl PartialEq for PushPlanError
impl StructuralPartialEq for PushPlanError
Auto Trait Implementations§
impl Freeze for PushPlanError
impl RefUnwindSafe for PushPlanError
impl Send for PushPlanError
impl Sync for PushPlanError
impl Unpin for PushPlanError
impl UnsafeUnpin for PushPlanError
impl UnwindSafe for PushPlanError
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<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.