Lines Matching +full:repo +full:- +full:name
8 # <nico-linuxsetlocalversion -at- schottelius.org>.
17 cd "${1:-.}" || usage
19 # Check for git and a git repo.
20 if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
24 # Show -g<commit> if we have no tag, or just the tag
26 if [ -z "${atag}" ] ; then
27 printf "%s%s" -g ${head}
33 if git config --get svn-remote.svn.url >/dev/null; then
34 printf -- '-svn%s' "`git svn find-rev $head`"
38 [ -w . ] && git update-index --refresh --unmerged > /dev/null
41 if git diff-index --name-only HEAD | grep -v "^scripts/package" \
43 printf '%s' -dirty
50 # Check for mercurial and a mercurial repo.
54 if hgid=`HGRCPATH= hg id --id --tags 2>/dev/null`; then
55 tag=`printf '%s' "$hgid" | cut -d' ' -f2 --only-delimited`
58 if [ -z "$tag" -o "$tag" = tip ]; then
60 latesttag=`HGRCPATH= hg log -r. -T '{latesttag}' 2>/dev/null`
70 printf '%s%s%s' "${latesttag}" -hg "$id"
79 *+|*+\ *) printf '%s' -dirty ;;
86 # Check for svn and a svn repo.
89 printf -- '-svn%s' "$rev"