-
-
Save NaserKhoshfetrat/3d5be0ec45f3c0cc0da245ab12afdab7 to your computer and use it in GitHub Desktop.
scan git revision list for bug #s in the comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#scan revision list for bug #s in the comments | |
#convert into comma separated values | |
bugs=`git log $1..$2 --pretty=oneline | grep -o " bug *[0-9]*" | \ | |
cut -d " " -f 3 | sort -n | uniq | while read x; do echo -n $x,; done;` | |
#strip final comma | |
bugs=${bugs%,} | |
#send output to console | |
echo -n "http://bugzilla/buglist.cgi?quicksearch="; \ | |
echo $bugs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment