2018-03-23 18:39:47 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
since="$1"
|
|
|
|
|
|
|
|
if [[ -z "$since" ]]; then
|
|
|
|
echo "Usage: $0 [since]"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for rev in $(git rev-list "$since"..HEAD | tac); do
|
|
|
|
if git notes --ref=changelog list $rev &> /dev/null; then
|
|
|
|
output=$(git notes --ref=changelog show $rev | sed '2,$s/^/ /')
|
2018-05-01 19:51:27 +00:00
|
|
|
echo "* [$(echo ${rev:0:10})] $output"
|
2018-03-23 18:39:47 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|