Skip to content

Instantly share code, notes, and snippets.

@mgol

mgol/git-fixed.sh

Last active Apr 25, 2017
Embed
What would you like to do?
Show the sorted list of tickets fixed between 2 given commits.
#!/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
You can’t perform that action at this time.