set_GIT_DIRTY

Function set_GIT_DIRTY 

Source
pub fn set_GIT_DIRTY() -> Result<(), String>
Expand description

Sets the GIT_DIRTY env variable.

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

Sets the variable to "true" if the git repository contains uncommitted changes. Otherwise, sets it to "false".

ยงErrors

Returns an error if it fails to execute the git command.