mirror of
https://github.com/lewurm/savezelda.git
synced 2024-11-18 00:29:19 +01:00
13 lines
267 B
Bash
13 lines
267 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Check for git and a git repo.
|
||
|
if head=`git rev-parse --verify HEAD 2>/dev/null`; then
|
||
|
echo -n `git describe`
|
||
|
|
||
|
# Are there uncommitted changes?
|
||
|
git update-index --refresh --unmerged > /dev/null
|
||
|
git diff-index --quiet HEAD || echo -n -dirty
|
||
|
fi
|
||
|
|
||
|
echo
|