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
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