From c6eb876ec51a2310cee073bb3286154b0dfd4e0b Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 26 Apr 2009 19:48:39 -0700 Subject: [PATCH] Meta/V: translate dirty->with changes consistently --- V | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.11.4.GIT