{"thread":{"id":"5133","subject":"[PATCH] GIT-VERSION-GEN: Use git project-version.","startedAt":"2006-08-04T22:01:21Z","lastAt":"2006-08-04T22:01:21Z","messageCount":1,"participants":["Santi Béjar"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"24762","messageId":"87vep840um.fsf@gmail.com","threadId":"5133","inReplyTo":null,"subject":"[PATCH] GIT-VERSION-GEN: Use git project-version.","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2006-08-04T22:01:21Z","receivedAt":"2006-08-04T22:01:21Z","isPatch":true,"sender":{"key":"santi@agolina.net","avatar":null},"body":"\n---\nHi *,\n\nThere are two little behaviour changes:\n\n1.- the -dirty suffix is converted to .dirty\n2.- the version from the file version does not get the -dirty suffix.\n\n GIT-VERSION-GEN |   12 ++----------\n 1 files changed, 2 insertions(+), 10 deletions(-)\n\ndiff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN\nindex 1ce217d..99e35e1 100755\n--- a/GIT-VERSION-GEN\n+++ b/GIT-VERSION-GEN\n@@ -3,9 +3,9 @@ #!/bin/sh\n GVF=GIT-VERSION-FILE\n DEF_VER=v1.4.2.GIT\n \n-# First try git-describe, then see if there is a version file\n+# First try git-project-version, then see if there is a version file\n # (included in release tarballs), then default\n-if VN=$(git describe --abbrev=4 HEAD 2>/dev/null); then\n+if VN=$(git project-version); then\n \tVN=$(echo \"$VN\" | sed -e 's/-/./g');\n elif test -f version\n then\n@@ -16,14 +16,6 @@ fi\n \n VN=$(expr \"$VN\" : v*'\\(.*\\)')\n \n-dirty=$(sh -c 'git diff-index --name-only HEAD' 2>/dev/null) || dirty=\n-case \"$dirty\" in\n-'')\n-\t;;\n-*)\n-\tVN=\"$VN-dirty\" ;;\n-esac\n-\n if test -r $GVF\n then\n \tVC=$(sed -e 's/^GIT_VERSION = //' <$GVF)\n-- \n1.4.2.rc3.g3f0a-dirty\n"}]}