~matthiasbeyer/imag

ref: 9b48dc27cd00fcc75917c2702dc8dc4c6493e8d3 imag/scripts/gen-changelog -rw-r--r-- 351 bytes
9b48dc27Matthias Beyer libimagentryref: Move from error-chain to failure 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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/^/  /')
        echo "* [$(echo ${rev:0:10})] $output"
    fi
done