We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4037b51 commit c6eb876Copy full SHA for c6eb876
V
@@ -26,7 +26,7 @@ do
26
:
27
elif version=$(expr "$installed" : '.*\.g\([0-9a-f]*\)\.dirty$')
28
then
29
- dirty=t
+ dirty=" (with changes)"
30
elif version=v$(expr "$installed" : \
31
'git version \(.*\)\.rc[0-9]*$')
32
@@ -41,16 +41,18 @@ do
41
if test "z$version" = "z$revision"
42
43
in= out=
44
- installed=${dirty:+" (with changes)"}
+ installed=$dirty
45
elif test -z "$version"
46
47
in="[41;37m" out="[m"
48
installed=" none"
49
else
50
installed=$(git describe $version)
51
case "$dirty" in
52
- t)
53
- installed="$installed.dirty"
+ '')
+ ;;
54
+ ?*)
55
+ installed="$installed$dirty"
56
esac
57
in="[41;37m" out="[m" installed=" $installed"
58
fi
0 commit comments