pub struct GitInfo {Show 16 fields
pub tag: String,
pub tag_source: TagSource,
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§tag_source: TagSourceWhether Self::tag was declared by the operator or inferred from the
repository. Defaults to TagSource::Inferred; the tag-resolution
layer promotes it to TagSource::Declared when an override supplied
the name.
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).