diff options
Diffstat (limited to 'contrib/scripts/changelog_delta.sh')
-rwxr-xr-x | contrib/scripts/changelog_delta.sh | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/contrib/scripts/changelog_delta.sh b/contrib/scripts/changelog_delta.sh index 988434903..20fb98649 100755 --- a/contrib/scripts/changelog_delta.sh +++ b/contrib/scripts/changelog_delta.sh | |||
@@ -1,18 +1,6 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | if [ $2 == "plain" ]; then | ||
3 | FORMAT=" - %s%n%b" | ||
4 | echo "Changes since $1:" | ||
5 | elif [ $2 == "html" ]; then | ||
6 | FORMAT=" <li>%s<br>%b</li>" | ||
7 | echo "<ul>" | ||
8 | elif [ $2 == "changelog" ]; then | ||
9 | FORMAT="%aD (%h)%n%s%n%b%nby: %cN%n" | ||
10 | fi | ||
11 | |||
12 | git --no-pager log --grep="^[a-zA-Z]*: " --no-merges --no-color --format="$FORMAT" $1..HEAD | ||
13 | |||
14 | if [ $2 == "html" ]; then | ||
15 | echo "</ul>" | ||
16 | fi | ||
17 | 2 | ||
3 | OLDVERSION=$1 | ||
18 | 4 | ||
5 | git --no-pager log --grep="^NEWS: " -i --no-merges --no-color --format="%s%n%b" $1..HEAD | grep -i "^NEWS:\s[a-zA-Z][a-zA-Z]*" | sed 's/NEWS:/ -/i' | ||
6 | echo "" | ||