Skip to content

Instantly share code, notes, and snippets.

@rhunter
Forked from jennifersmith/gist:2962703
Created June 20, 2012 23:07
Show Gist options
  • Save rhunter/2962814 to your computer and use it in GitHub Desktop.
Save rhunter/2962814 to your computer and use it in GitHub Desktop.
release_dates.sh
pattern='release_'
all_release_branch_names=($(git show-ref | egrep "$pattern" | cut -d' ' -f 2))
for branch in "${all_release_branch_names[@]}"; do
commit_where_it_branched_from_master=$(git merge-base ${branch} master)
git show $commit_where_it_branched_from_master -s --pretty=format:"$branch branched from master on %cd"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment