Append -dirty if the working tree is dirty.

This commit is contained in:
Jordan Woyak 2011-08-21 17:43:56 -05:00
parent bc3ab4ff40
commit 9613713e14

View File

@ -54,7 +54,7 @@ if(GIT_FOUND AND NOT DOLPHIN_WC_REVISION)
OUTPUT_VARIABLE DOLPHIN_WC_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE)
# defines DOLPHIN_WC_DESCRIBE
EXECUTE_PROCESS(COMMAND ${GIT_EXECUTABLE} describe --always
EXECUTE_PROCESS(COMMAND ${GIT_EXECUTABLE} describe --always --dirty
OUTPUT_VARIABLE DOLPHIN_WC_DESCRIBE
OUTPUT_STRIP_TRAILING_WHITESPACE)
# defines DOLPHIN_WC_BRANCH