#[non_exhaustive]pub enum PushPlanError {
Show 16 variants
DetachedHeadNoRefspec,
NoCommits,
NoTags,
PushDefaultNothing,
NoRemote,
UnknownRemote {
name: String,
},
InvalidRefspec {
spec: String,
reason: String,
},
SrcRefspecNoMatch {
spec: String,
},
SrcRefspecAmbiguous {
spec: String,
},
DstRefspecAmbiguous {
spec: String,
},
UnknownRevision {
spec: String,
},
LeaseValueRequiresSingleRef,
DeleteNotPlainName {
spec: String,
},
DeleteWithoutRefs,
InvalidHead,
NoUpstreamForPushDefault {
branch: String,
},
}Expand description
Errors while planning a push (typed; no stringly matching in callers).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
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.
InvalidHead
HEAD could not be interpreted for push planning.
NoUpstreamForPushDefault
push.default = upstream but the branch has no branch.<name>.merge.
Trait Implementations§
Source§impl Debug for PushPlanError
impl Debug for PushPlanError
Source§impl Display for PushPlanError
impl Display 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()