pub struct GitFacts {
pub branch: Option<String>,
pub commit: String,
pub describe: Option<String>,
pub modified: bool,
}Expand description
What git says about the checkout a build is made from.
Fields§
§branch: Option<String>Current branch, or None when HEAD is detached.
commit: StringAbbreviated hash of HEAD.
describe: Option<String>Output of git describe --tags --long --match 'v*', if a v* tag is reachable.
modified: boolWhether tracked files have uncommitted changes.
Trait Implementations§
impl Eq for GitFacts
impl StructuralPartialEq for GitFacts
Auto Trait Implementations§
impl Freeze for GitFacts
impl RefUnwindSafe for GitFacts
impl Send for GitFacts
impl Sync for GitFacts
impl Unpin for GitFacts
impl UnsafeUnpin for GitFacts
impl UnwindSafe for GitFacts
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