diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-28 15:27:15 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-05-28 15:27:15 -0500 |
commit | dd6cfb63ad85d0164cbe4ac04f7aea9f6a842f02 (patch) | |
tree | 5bc45394b9192771bcc85fa59b8aab4b8a4301bb /git/.local/bin/git-bump | |
parent | 1527172edf1f7d65095a5c2268947c16ed905d18 (diff) |
feat!: remove unused configs and cleanup paths
Diffstat (limited to 'git/.local/bin/git-bump')
-rwxr-xr-x | git/.local/bin/git-bump | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/git/.local/bin/git-bump b/git/.local/bin/git-bump deleted file mode 100755 index d75a755..0000000 --- a/git/.local/bin/git-bump +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -tag="$(git describe --abbrev=0 2>/dev/null)" -IFS=. read -r major minor patch <<EOF -${tag#v} -EOF - -case "$1" in -major) - major=$((major + 1)) - minor=0 - patch=0 - ;; -minor) - minor=$((minor + 1)) - patch=0 - ;; -patch) - patch=$((patch + 1)) - ;; -*) - echo "Invalid semver argument given (major|minor|patch): $1" 1>&2 - exit 1 - ;; -esac - -git shortlog "$tag"..HEAD | git tag -s "v${major}.${minor}.${patch}" --file - |