pub enum RefnameUnavailable {
AncestorExists {
blocking: String,
new_ref: String,
},
DescendantExists {
blocking: String,
new_ref: String,
},
SameBatch {
refname: String,
other: String,
},
}Expand description
Why a reference name cannot be created (Git refs_verify_refname_available style).
Variants§
AncestorExists
An ancestor ref already exists in the store (e.g. refs/foo blocks refs/foo/bar).
Fields
DescendantExists
A descendant ref already exists (e.g. refs/foo/bar blocks refs/foo).
SameBatch
Two refnames in the same batch are mutually incompatible (parent vs child).
Implementations§
Sourcepub fn lock_message_suffix(&self) -> String
pub fn lock_message_suffix(&self) -> String
Suffix after cannot lock ref '<display_ref>': for stderr (no trailing newline).
Trait Implementations§
Source§fn clone(&self) -> RefnameUnavailable
fn clone(&self) -> RefnameUnavailable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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