Enum git_repository::head::Kind
source · pub enum Kind {
Symbolic(Reference),
Unborn(FullName),
Detached {
target: ObjectId,
peeled: Option<ObjectId>,
},
}
Expand description
Represents the kind of HEAD
reference.
Variants
Symbolic(Reference)
The existing reference the symbolic HEAD points to.
This is the common case.
Unborn(FullName)
The yet-to-be-created reference the symbolic HEAD refers to.
This is the case in a newly initialized repository.
Detached
Fields
target: ObjectId
The object to which the head points to
The head points to an object directly, not to a symbolic reference.
This state is less common and can occur when checking out commits directly.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more