Meta/Announce: brief list of contributors
By popular demand, mention new and returning contributors in the announcement.
Junio C Hamano committed
Mar 11, 2015 at 14:56 UTC
a2eed2a33309fd070395010aef3b3de69d9753f9
1 file changed
+40
Announce
+40
@@ -1,6 +1,8 @@
1
#!/bin/sh
2
# Announcement message skelton
3
#
4
+tmpbase=/var/tmp/git-announce.$$
5
+trap 'rm -f $tmpbase.*' 0
6
branch=${1?branch}
7
previous=${2?previous}
8
commit=${3-"$1"}
@@ -40,6 +42,15 @@ esac
42
43
vername=$(echo "$vername" | tr "-" ".")
44
45
+git log --format='%aN,' "$previous" | sort -u >"$tmpbase.prev"
46
+git log --format='%aN,' "$previous..$commit" | sort -u >"$tmpbase.this"
47
+comm -12 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.old"
48
+comm -13 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.new"
49
+
50
+all=$(wc -l <"$tmpbase.this")
51
+new=$(wc -l <"$tmpbase.new")
52
+cnt=$(git rev-list --no-merges "$previous..$commit" | wc -l)
53
+
54
cat <<EOF
55
To: git@vger.kernel.org
56
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
@@ -50,6 +61,8 @@ EOF
61
62
fmt -68 <<EOF
63
$kind Git $relname is now available$for_testing at the usual places.
64
+It comprises of $cnt non-merge commits since $previous,
65
+contributed by $all people, $new of which are new faces.
66
EOF
67
68
cat <<EOF
@@ -67,6 +80,33 @@ tag and the '$branch' branch that the tag points at:
80
url = git://git.sourceforge.jp/gitroot/git-core/git.git
81
url = git://git-core.git.sourceforge.net/gitroot/git-core/git-core
82
url = https://github.com/gitster/git
83
+EOF
84
+
85
+fmt_people () {
86
+ # Yes, I don't perform well without 2 or more people.
87
+ # Sue me. The heading says "are as follows" anyway ;-).
88
+ sed -e '${
89
+ s/^/and /
90
+ s/,$/./
91
+ }' "$1" |
92
+ fmt -66 |
93
+ sed -e 's/^/ /'
94
+
95
+}
96
+
97
+cat <<EOF
98
+
99
+New contributors who appeared first in this release are as follows.
100
+Welcome to the Git development community!
101
+
102
+$(fmt_people "$tmpbase.new")
103
+
104
+Returning contributors who helped this release are as follows.
105
+Thanks for your continued support.
106
+
107
+$(fmt_people "$tmpbase.old")
108
+
109
+----------------------------------------------------------------
110
111
EOF
112