From a86b0ffa6b9a3c0717a337d2e5544365b6cda2ad Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 16 Jun 2017 17:20:44 +0200 Subject: version.sh: append -dirty if the working tree contains modifications This allows us to detect users who run mpv with custom patches. --- version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.sh b/version.sh index e79ad0ca89..45a529c54e 100755 --- a/version.sh +++ b/version.sh @@ -34,7 +34,7 @@ fi # or from "git describe" output git_revision=$(cat snapshot_version 2> /dev/null) test "$git_revision" || test ! -e .git || git_revision="$(git describe \ - --match "v[0-9]*" --always --tags | sed 's/^v//')" + --match "v[0-9]*" --always --tags --dirty | sed 's/^v//')" version="$git_revision" # other tarballs extract the version number from the VERSION file -- cgit v1.2.3