Enum jj_lib::git::FailedRefExportReason
source · pub enum FailedRefExportReason {
InvalidGitName,
ConflictedOldState,
OnRootCommit,
DeletedInJjModifiedInGit,
AddedInJjAddedInGit,
ModifiedInJjDeletedInGit,
FailedToDelete(Box<Error>),
FailedToSet(Box<Error>),
}
Expand description
The reason we failed to export a ref to Git.
Variants§
InvalidGitName
The name is not allowed in Git.
ConflictedOldState
The ref was in a conflicted state from the last import. A re-import should fix it.
OnRootCommit
The branch points to the root commit, which Git doesn’t have
DeletedInJjModifiedInGit
We wanted to delete it, but it had been modified in Git.
AddedInJjAddedInGit
We wanted to add it, but Git had added it with a different target
ModifiedInJjDeletedInGit
We wanted to modify it, but Git had deleted it
FailedToDelete(Box<Error>)
Failed to delete the ref from the Git repo
FailedToSet(Box<Error>)
Failed to set the ref in the Git repo
Trait Implementations§
source§impl Debug for FailedRefExportReason
impl Debug for FailedRefExportReason
source§impl Display for FailedRefExportReason
impl Display for FailedRefExportReason
source§impl Error for FailedRefExportReason
impl Error for FailedRefExportReason
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for FailedRefExportReason
impl Send for FailedRefExportReason
impl Sync for FailedRefExportReason
impl Unpin for FailedRefExportReason
impl !UnwindSafe for FailedRefExportReason
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