Add indicator of local changes relative to commit checksum

This commit is contained in:
Douglas Clowes
2013-02-15 13:25:34 +11:00
parent d3a7249649
commit 639e7af80c

View File

@@ -41,6 +41,11 @@ else
then
SICS_VER="$(git branch | grep '^*' | sed 's/^\* *//')"
SICS_REV="$(git log -1 --oneline | cut -d ' ' -f 1)"
SICS_PLUS="$(git status --porcelain -uno | wc -l)"
if [[ ${SICS_PLUS} > 0 ]]
then
SICS_REV="${SICS_REV}+${SICS_PLUS}"
fi
else
SICS_VER="$USER"
SICS_REV="$(date '+%Y-%m-%d-%H-%m-%S')"