pub struct GitInfo {Show 15 fields
pub tag: String,
pub commit: String,
pub short_commit: String,
pub branch: String,
pub dirty: bool,
pub semver: SemVer,
pub commit_date: String,
pub commit_timestamp: String,
pub previous_tag: Option<String>,
pub remote_url: String,
pub summary: String,
pub tag_subject: String,
pub tag_contents: String,
pub tag_body: String,
pub first_commit: Option<String>,
}Fields§
§tag: String§commit: String§short_commit: String§branch: String§dirty: bool§semver: SemVer§commit_date: StringISO 8601 committer date of HEAD commit (from git log -1 --format=%cI)
commit_timestamp: StringUnix timestamp of HEAD commit (from git log -1 --format=%at)
previous_tag: Option<String>Previous tag matching the same pattern, if any. Populated externally by the release command once the tag_template is known.
remote_url: StringRemote URL from git remote get-url origin.
summary: StringGit describe summary (e.g. v1.0.0-10-g34f56g3) from git describe --tags --always.
tag_subject: StringAnnotated tag subject (first line of tag message) or commit subject.
tag_contents: StringFull annotated tag message or full commit message.
tag_body: StringTag message body (everything after first line) or commit message body.
first_commit: Option<String>First commit hash in the repository (for changelog range when no previous tag).
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