diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git_hash.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh new file mode 100755 index 0000000..c9f1faf --- /dev/null +++ b/scripts/git_hash.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +repo=https://git.linaro.org/lng/odp.git +hash=$(git describe | tr -d "\n") +if git diff-index --name-only HEAD &>/dev/null ; then + dirty=-dirty +fi + +echo -n "'${repo}' (${hash}${dirty})" |