Add script to print changelog for a specific range
This commit is contained in:
parent
d08a5ab536
commit
d7ba28d5ac
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