mirror of
https://github.com/nkcmr/HyperTab.git
synced 2026-01-11 11:50:33 +01:00
15 lines
317 B
Bash
Executable File
15 lines
317 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
[ -n "${TRACE:-}" ] && set -x
|
|
|
|
current_tag="$(git describe --tags --abbrev=0)"
|
|
next_tag="$(datever increment "$current_tag")"
|
|
|
|
if [[ "$(git describe --exact-match --tags 2>/dev/null)" != "" ]]; then
|
|
echo "Current commit is already tagged; quiting..."
|
|
exit 1
|
|
fi
|
|
|
|
git tag "$next_tag"
|