You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thumbsup/scripts/changelog

17 lines
444 B
Bash

#!/bin/bash -e
current_tag="$1"
if [ -z "${current_tag}" ]; then
echo "Displays changes since previous tag"
echo "Usage: changelog <current tag>"
echo "Examples:"
echo " changelog HEAD"
echo " changelog 2.15.0"
exit 1
fi
previous_tag=$(git describe --tags --abbrev=0 "${current_tag}^")
format="- %s ([%h](https://github.com/thumbsup/thumbsup/commit/%h))"
git log --pretty=format:"${format}" "${previous_tag}".."${current_tag}"