Summary Files Commits Branches @commit @diff @stats
path: root / version.sh
blob: 318aa728793294de33ece6680bc382027d5aea62 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
hash=$(git --git-dir="$(dirname $0)/.git" rev-parse --short HEAD 2>/dev/null)

if [ -n "$hash" ]
then
	printf '+g%s' "$hash"
fi
echo