Add indicator of local changes relative to commit checksum
This commit is contained in:
@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user