Skip to content

Instantly share code, notes, and snippets.

@jennifersmith
Created June 20, 2012 22:49
Show Gist options
  • Save jennifersmith/2962703 to your computer and use it in GitHub Desktop.
Save jennifersmith/2962703 to your computer and use it in GitHub Desktop.
release_dates.sh
all_release_branch_names=($(git show-ref | grep 'release_' | 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:"$commit_it_where_branched_from_master branched from master on %cd"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment