Skip to main content

GIT_DESCRIBE

Constant GIT_DESCRIBE 

Source
pub const GIT_DESCRIBE: &str;
Expand description

git describe --long --tags --dirty for the checked-out commit (e.g. v0.2.0-3-g1a2b3c4-dirty), degrading to the abbreviated SHA on a repository without tags and -dirty appended when the tree had uncommitted changes at compile time. "untagged" only when the build had no git at all (source tarball) — or when the variable was present but empty, which is what a container build exports for an unset build-arg (ENV WARATAH_GIT_DESCRIBE=); an empty string is no more provenance than absence.

Emitted by a hand-rolled call in build.rs (vergen-gitcl 9.1.0 cannot produce --long output); see git_describe_long there.