From: Junio C Hamano Date: Wed, 11 Mar 2015 21:56:20 +0000 (-0700) Subject: Meta/Announce: brief list of contributors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2eed2a33309fd070395010aef3b3de69d9753f9;p=thirdparty%2Fgit.git Meta/Announce: brief list of contributors By popular demand, mention new and returning contributors in the announcement. --- diff --git a/Announce b/Announce index 0124eb348a..4932a447d3 100755 --- a/Announce +++ b/Announce @@ -1,6 +1,8 @@ #!/bin/sh # Announcement message skelton # +tmpbase=/var/tmp/git-announce.$$ +trap 'rm -f $tmpbase.*' 0 branch=${1?branch} previous=${2?previous} commit=${3-"$1"} @@ -40,6 +42,15 @@ esac vername=$(echo "$vername" | tr "-" ".") +git log --format='%aN,' "$previous" | sort -u >"$tmpbase.prev" +git log --format='%aN,' "$previous..$commit" | sort -u >"$tmpbase.this" +comm -12 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.old" +comm -13 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.new" + +all=$(wc -l <"$tmpbase.this") +new=$(wc -l <"$tmpbase.new") +cnt=$(git rev-list --no-merges "$previous..$commit" | wc -l) + cat < @@ -50,6 +61,8 @@ EOF fmt -68 <