From 7bfe4e195051851a422930830aedc924b56d55d2 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Sun, 29 Dec 2024 21:29:10 -0500 Subject: [PATCH] Append a `+` to the version name if there are any uncommitted changes or unignored untracked files. Resolve #685 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- script/version | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/version b/script/version index f5369b27..9587da37 100755 --- a/script/version +++ b/script/version @@ -8,4 +8,6 @@ . "${0:a:h}/_setup_script" -printf $'%s\n' "${"$(git describe --tags 2>/dev/null)"#v}" +printf $'%s%s\n'\ + "${"$(git describe --tags 2>/dev/null)"#v}"\ + "${"$(git diff-index HEAD --;git ls-files --exclude-standard --others)":++}"