TODO update as of 1.5.4.5/1.5.5-rc2
[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 -w76,2,4 --no-merges "$@"
9 }
10
11 echo "Subject: What's in git.git (stable)"
12 echo "X-maint-at: $maint_at"
13 echo "X-master-at: $master_at"
14
15 tagged=`git rev-parse --not --verify hold/sa/maint`
16 list=`git rev-list $tagged refs/heads/maint 2>/dev/null`
17 if test -n "$list"
18 then
19         echo
20         echo "* The 'maint' branch has these fixes since the last announcement."
21         echo
22         log $tagged heads/maint
23 fi
24
25 tagged=`git rev-parse --not --verify hold/sa/master`
26 list=`git rev-list $tagged refs/heads/master 2>/dev/null`
27 if test -n "$list"
28 then
29         echo
30         echo "* The 'master' branch has these since the last announcement"
31         echo "  in addition to the above."
32         echo
33         log $tagged heads/master ^heads/maint
34 fi