Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. function last_tag() {
  2. echo $(git describe --tags $(git rev-list --tags --max-count=1))
  3. }
  4.  
  5. function gbump() {
  6. latest_tag=$(last_tag)
  7. new_tag=v$(semver bump $1 $latest_tag)
  8. echo -e "\e[33m"$latest_tag "-> \e[32m"$new_tag
  9. git tag $new_tag
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement