Skip to content

Instantly share code, notes, and snippets.

@mgol
Last active April 25, 2017 10:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgol/6631013 to your computer and use it in GitHub Desktop.
Save mgol/6631013 to your computer and use it in GitHub Desktop.
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