diff options
-rwxr-xr-x | scripts/changelog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/changelog b/scripts/changelog new file mode 100755 index 00000000..04969305 --- /dev/null +++ b/scripts/changelog @@ -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 |