Meta/V: translate dirty->with changes consistently

Junio C Hamano committed Apr 26, 2009 at 19:48 UTC c6eb876ec51a2310cee073bb3286154b0dfd4e0b
1 file changed +6 -4
V
+6 -4
index 2cbab58be4..cd67951db8 100755 --- a/V +++ b/V @@ -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