Skip to content

Commit

Permalink
Append a + to the version name if there are any uncommitted changes…
Browse files Browse the repository at this point in the history
… or unignored untracked files.

Resolve mas-cli#685

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Dec 30, 2024
1 parent 48ab1ca commit 7bfe4e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/version
Original file line number Diff line number Diff line change
Expand Up @@ -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)":++}"

0 comments on commit 7bfe4e1

Please sign in to comment.