Merge pull request #1423 from matthiasbeyer/add-changelog-script

Add script to print changelog for a specific range
This commit is contained in:
Matthias Beyer 2018-04-20 10:35:47 +02:00 committed by GitHub
commit c6dd1ab56d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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