Function set_GIT_COMMIT

Source
pub fn set_GIT_COMMIT()
Expand description

Sets the GIT_COMMIT env variable.

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

Executes the git command.

Example value: "a5547bfb1edb9712588f0f85d3e2c8ba618ac51f"

ยงPanics

Panics if it fails to get the value from git.