Function build_data::set_GIT_DIRTY [−][src]
pub fn set_GIT_DIRTY()
Sets the GIT_DIRTY
env variable.
Call this from build.rs
.
Use env!
in your main.rs
to use the variable.
Executes the git
command.
Sets the variable to "true"
if the git repository contains uncommitted
changes. Otherwise, sets it to "false"
.
Panics
Panics if it fails to get the value from git
.