projects
/
savezelda.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
batman: banners
[savezelda.git]
/
describe.sh
1
#!/bin/bash
2
3
# Check for git and a git repo.
4
if head=`git rev-parse --verify HEAD 2>/dev/null`; then
5
echo -n `git describe`
6
7
# Are there uncommitted changes?
8
git update-index --refresh --unmerged > /dev/null
9
git diff-index --quiet HEAD || echo -n -dirty
10
fi
11
12
echo