From: Junio C Hamano Date: Mon, 27 Apr 2009 02:48:39 +0000 (-0700) Subject: Meta/V: translate dirty->with changes consistently X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6eb876ec51a2310cee073bb3286154b0dfd4e0b;p=thirdparty%2Fgit.git Meta/V: translate dirty->with changes consistently --- diff --git a/V b/V 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