Skip to content

Instantly share code, notes, and snippets.

@vortec
Created August 8, 2013 21:08
Show Gist options
  • Save vortec/6188753 to your computer and use it in GitHub Desktop.
Save vortec/6188753 to your computer and use it in GitHub Desktop.
#!/bin/bash
oldrev=$(git rev-parse $1)
newrev=$(git rev-parse $2)
refname="$3"
case "$refname","$rev_type" in
refs/tags/*,tag)
# annotated tag
refname_type="annotated tag"
function="atag"
short_refname=${refname##refs/tags/}
# change recipients
if [ -n "$announcerecipients" ]; then
recipients="$announcerecipients"
fi
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment