What's in/cooking
[git/spearce.git] / V
blobe926624ad7e74e48011c5662c360cfed62d55dae
1 #!/bin/sh
3 for v in maint master next pu jch
4 do
5 installed=$($HOME/git-$v/bin/git version)
6 if version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$')
7 then
9 elif version=v$(expr "$installed" : \
10 'git version \(.*\)\.rc[0-9]*$')
11 then
12 version="$version"-$(expr "$installed" : \
13 'git version .*\.\(rc[0-9]*\)$')
14 else
15 version=v$(expr "$installed" : 'git version \(.*\)')
18 version=$(git rev-parse --verify "$version^0" 2>/dev/null)
19 revision=$(git show-ref -s --verify "refs/heads/$v")
20 if test "z$version" = "z$revision"
21 then
22 in= out= installed=
23 else
24 installed=$(git describe $version)
25 in="\e[41;37m" out="\e[m" installed=" $installed"
27 echo "$in$v$out $(git describe refs/heads/$v)$installed"
28 done