pub struct GitInfo {
pub current_branch: String,
pub is_clean: bool,
pub head_sha: String,
pub ahead_count: u32,
}Expand description
Git repository information.
Fields§
§current_branch: StringCurrent branch name.
is_clean: boolWhether the working tree is clean.
head_sha: StringCurrent HEAD commit SHA.
ahead_count: u32Number of commits ahead of upstream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitInfo
impl RefUnwindSafe for GitInfo
impl Send for GitInfo
impl Sync for GitInfo
impl Unpin for GitInfo
impl UnsafeUnpin for GitInfo
impl UnwindSafe for GitInfo
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