Merge pull request #1423 from matthiasbeyer/add-changelog-script
Add script to print changelog for a specific range
This commit is contained in:
commit
c6dd1ab56d
1 changed files with 12 additions and 0 deletions
12
scripts/changelog
Executable file
12
scripts/changelog
Executable 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
|
Loading…
Reference in a new issue