Skip to content

Instantly share code, notes, and snippets.

@maxkandler
Last active January 12, 2016 12:42
Show Gist options
  • Save maxkandler/6f4910143a88ad3c4f5e to your computer and use it in GitHub Desktop.
Save maxkandler/6f4910143a88ad3c4f5e to your computer and use it in GitHub Desktop.
One liner to get a coma-separated list of all JIRA-issues between to two commits / branches / tags.
# Replace `v1` and `v2` with the correct SHAs or tags.
# Replace `PROJ` with your Jira-Project identifier.
git log --pretty=oneline v1..v2 | pcregrep -o --regexp="(PROJ-\d+)" | sort -n | uniq | tr '\n' ','
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment