Function set_GIT_COMMIT_SHORT

Source
pub fn set_GIT_COMMIT_SHORT()
Expand description

Sets the GIT_COMMIT_SHORT env variable.

Call this from build.rs. Use env! in your main.rs to use the variable.

Executes the git command.

Example value: "a5547bf"

ยงPanics

Panics if it fails to get the value from git.