Skip to content

Commit

Permalink
Merge pull request #688 from rgoldberg/685-version-uncommitted
Browse files Browse the repository at this point in the history
Append a `+` to version name if there are any uncommitted changes or unignored untracked files
  • Loading branch information
rgoldberg authored Dec 30, 2024
2 parents 48ab1ca + 7bfe4e1 commit 11a3555
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 11a3555

Please sign in to comment.