pub struct Head {
pub branch: Option<String>,
pub linked: bool,
}Expand description
What a repository’s HEAD says, read as a file rather than asked of git.
Fields§
§branch: Option<String>The branch checked out; None when HEAD is detached.
linked: boolThe repository’s .git is a gitdir: link: a worktree or a
submodule checkout.
Trait Implementations§
impl Eq for Head
impl StructuralPartialEq for Head
Auto Trait Implementations§
impl Forget for Head
impl Freeze for Head
impl Move for Head
impl RefUnwindSafe for Head
impl Send for Headwhere
RawVecInner: Send,
impl Sync for Headwhere
RawVecInner: Sync,
impl Unpin for Head
impl UnsafeUnpin for Head
impl UnwindSafe for Headwhere
RawVecInner: UnwindSafe,
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