mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
18 lines
244 B
Bash
18 lines
244 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
usage() {
|
||
|
echo "usage: $0"
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
[ -z "$1" ] || usage
|
||
|
|
||
|
HASH=$(git log -1 --pretty=format:%H)
|
||
|
|
||
|
# mark it with a "+" if anything's changed
|
||
|
if git status --porcelain | grep -q '^[^\?]'; then
|
||
|
HASH="${HASH}+M"
|
||
|
fi
|
||
|
|
||
|
echo $HASH
|