Meta/V: highlight stale branch

todo
Junio C Hamano 2007-04-03 01:07:09 -07:00
parent 89822eec3b
commit 4953c5961c
1 changed files with 12 additions and 1 deletions

13
V
View File

@ -1,5 +1,16 @@
#!/bin/sh

for v in maint master next pu
do
echo "$v $(git-describe $v) $($HOME/git-$v/bin/git version)"
installed=$($HOME/git-$v/bin/git version)
version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)$')
version=$(git rev-parse --verify "$version")
revision=$(git show-ref -s --verify "refs/heads/$v")
if test "z$version" = "z$revision"
then
in= out= installed=
else
in="" out="" installed=" $installed"
fi
echo "$in$v$out $(git-describe $v)$installed"
done