Add script to print changelog for a specific range

This commit is contained in:
Matthias Beyer 2018-04-20 09:35:16 +02:00
parent d08a5ab536
commit d7ba28d5ac
1 changed files with 12 additions and 0 deletions

12
scripts/changelog Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [[ -z "$1" ]]; then
echo "No rev list given"
exit 1
fi
for rev in $(git rev-list $1); do
if git notes --ref=changelog list $rev &> /dev/null; then
git log -n 1 --show-notes=* --pretty="format:* %N" $rev
fi
done