pub struct HeadInfo {
pub branch: Option<String>,
pub oid7: String,
pub subject: String,
pub upstream: Option<String>,
pub ahead: usize,
pub behind: usize,
}Fields§
§branch: Option<String>Branch shorthand; None when HEAD is detached.
oid7: StringAbbreviated commit id; empty on an unborn branch.
subject: StringFirst line of the HEAD commit message; empty on an unborn branch.
upstream: Option<String>Upstream branch shorthand, if configured.
ahead: usizeCommits on HEAD the upstream lacks, so work that exists only here is
visible without running git status. Zero without an upstream.
behind: usizeCommits on the upstream that HEAD lacks.
Trait Implementations§
impl Eq for HeadInfo
impl StructuralPartialEq for HeadInfo
Auto Trait Implementations§
impl Freeze for HeadInfo
impl RefUnwindSafe for HeadInfo
impl Send for HeadInfo
impl Sync for HeadInfo
impl Unpin for HeadInfo
impl UnsafeUnpin for HeadInfo
impl UnwindSafe for HeadInfo
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