Enum git_repository::easy::head::Kind [−][src]
pub enum Kind {
Symbolic(Reference),
Unborn(FullName),
Detached {
target: ObjectId,
peeled: Option<ObjectId>,
},
}
Expand description
Represents the kind of HEAD
reference.
Variants
Symbolic(Reference)
Tuple Fields
0: Reference
The existing reference the symbolic HEAD points to.
This is the common case.
Unborn(FullName)
Tuple Fields
0: 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.