Last active
April 25, 2017 10:27
-
-
Save mgol/6631013 to your computer and use it in GitHub Desktop.
Show the sorted list of tickets fixed between 2 given commits.
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/sh | |
# Show the sorted list of tickets fixed between 2 given commits. | |
if [ $# -ne 2 ]; then | |
echo "USAGE: `basename $0` commit1id commit2id" | |
exit 1 | |
fi | |
git log --ancestry-path $1..$2 | egrep -i 'fix|fixes|fixed' | grep '#' | cut -f2 -d'#' | awk '{ printf "%d\n", $1 }' | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment