Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function last_tag() {
- echo $(git describe --tags $(git rev-list --tags --max-count=1))
- }
- function gbump() {
- latest_tag=$(last_tag)
- new_tag=v$(semver bump $1 $latest_tag)
- echo -e "\e[33m"$latest_tag "-> \e[32m"$new_tag
- git tag $new_tag
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement