pub fn set_GIT_COMMIT_SHORT() -> Result<(), String>Expand description
Sets the GIT_COMMIT_SHORT env variable.
Call this from build.rs.
Use env! in your main.rs to use the variable.
Example value: "a5547bf"
Related: rerun_if_git_commit_or_branch_changed
ยงErrors
Returns an error if it fails to execute the git command.