Meta/V: translate dirty->with changes consistently

This commit is contained in:
Junio C Hamano 2009-04-26 19:48:39 -07:00
parent 4037b51ef4
commit c6eb876ec5

10
V
View file

@ -26,7 +26,7 @@ do
:
elif version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)\.dirty$')
then
dirty=t
dirty=" (with changes)"
elif version=v$(expr "$installed" : \
'git version \(.*\)\.rc[0-9]*$')
then
@ -41,7 +41,7 @@ do
if test "z$version" = "z$revision"
then
in= out=
installed=${dirty:+" (with changes)"}
installed=$dirty
elif test -z "$version"
then
in="" out=""
@ -49,8 +49,10 @@ do
else
installed=$(git describe $version)
case "$dirty" in
t)
installed="$installed.dirty"
'')
;;
?*)
installed="$installed$dirty"
esac
in="" out="" installed=" $installed"
fi