mirror of
https://github.com/lewurm/savezelda.git
synced 2024-11-19 00:59:20 +01:00
15edfaae0f
Enjoy!
13 lines
267 B
Bash
Executable File
13 lines
267 B
Bash
Executable File
#!/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
|