Pre 1.4.0 updates to TODO to describe postponed items.
[git.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 log --no-merges "$@" |
9         git shortlog |
10         perl -pe 'if (!/^    / && !/^$/) { s/^/   / }'
11 }
12
13 echo "To: git@vger.kernel.org"
14 echo "Subject: What's in git.git"
15 echo "X-maint-at: $maint_at"
16 echo "X-master-at: $master_at"
17
18 tagged=`git rev-parse --not --verify tags/sa/maint`
19 list=`git-rev-list $tagged refs/heads/maint 2>/dev/null`
20 if test -n "$list"
21 then
22         echo
23         echo "* The 'maint' branch has these fixes since the last announcement."
24         echo
25         log $tagged heads/maint
26 fi
27
28 tagged=`git rev-parse --not --verify tags/sa/master`
29 list=`git-rev-list $tagged refs/heads/master 2>/dev/null`
30 if test -n "$list"
31 then
32         echo
33         echo "* The 'master' branch has these since the last announcement."
34         echo
35         log $tagged heads/master
36 fi
37
38 list=`git-rev-list refs/heads/master..refs/heads/next 2>/dev/null`
39 if test -n "$list"
40 then
41         echo
42         echo "* The 'next' branch, in addition, has these."
43         echo
44         log heads/master..heads/next ^heads/cleannext
45 fi
46
47 list=`git-rev-list ^refs/heads/master ^refs/heads/next refs/heads/pu 2>/dev/null`
48 if test -n "$list"
49 then
50         echo
51         echo "* The 'pu' branch, in addition, has these."
52         echo
53         log ^heads/master heads/next..heads/pu
54 fi