Start preparing for the next cycle.
[git] / WI
1 #!/bin/sh
2 # Prepare "What's in git.git"
3
4 maint_at=$(git rev-parse --verify refs/heads/maint)
5 master_at=$(git rev-parse --verify refs/heads/master)
6
7 log () {
8         git shortlog --no-merges "$@" |
9         perl -pe '
10                 if (/^      /) { s//  /; }
11                 elsif (!/^$/) { s/^/ / }
12         '
13 }
14
15 echo "To: git@vger.kernel.org"
16 echo "Subject: What's in git.git (stable)"
17 echo "X-maint-at: $maint_at"
18 echo "X-master-at: $master_at"
19
20 tagged=`git rev-parse --not --verify tags/sa/maint`
21 list=`git-rev-list $tagged refs/heads/maint 2>/dev/null`
22 if test -n "$list"
23 then
24         echo
25         echo "* The 'maint' branch has these fixes since the last announcement."
26         echo
27         log $tagged heads/maint
28 fi
29
30 tagged=`git rev-parse --not --verify tags/sa/master`
31 list=`git-rev-list $tagged refs/heads/master 2>/dev/null`
32 if test -n "$list"
33 then
34         echo
35         echo "* The 'master' branch has these since the last announcement"
36         echo "  in addition to the above."
37         echo
38         log $tagged heads/master ^heads/maint
39 fi