Pages

Monday, July 7, 2014

Grab all JIRA ticket numbers (e.g. ABC-123) mentioned in commits added in feature branch off of master

$ git log master...feature-a | grep -o -E '\b([A-Z]+)-[0-9]+\b' | sort | uniq

To get the list of tickets in a comma-separated list, pipe the above into:


sort | uniq | perl -pe 's/\n/, /' | sed 's/, $//'


commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1vSME5J

No comments:

Post a Comment