]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Update What's-in script
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Aug 2008 04:42:45 +0000 (21:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Aug 2008 04:42:57 +0000 (21:42 -0700)
WI

diff --git a/WI b/WI
index c4f429e834bfc8d29622da0ab017f8b07a4d6cb5..83cfc4f9677c3922936fedd16529342d1f9272c2 100755 (executable)
--- a/WI
+++ b/WI
@@ -3,6 +3,8 @@
 
 maint_at=$(git rev-parse --verify refs/heads/maint)
 master_at=$(git rev-parse --verify refs/heads/master)
+maint_was=$(git rev-parse --verify refs/hold/sa/maint)
+master_was=$(git rev-parse --verify refs/hold/sa/master)
 
 log () {
        git shortlog -w76,2,4 --no-merges "$@"
@@ -11,15 +13,22 @@ log () {
 echo "Subject: What's in git.git (stable)"
 echo "X-maint-at: $maint_at"
 echo "X-master-at: $master_at"
+echo "X-maint-was: $maint_was"
+echo "X-master-was: $master_was"
 
 tagged=`git rev-parse --not --verify hold/sa/maint`
 list=`git rev-list $tagged refs/heads/maint 2>/dev/null`
+a=
 if test -n "$list"
 then
        echo
        echo "* The 'maint' branch has these fixes since the last announcement."
        echo
        log $tagged heads/maint
+       a='
+  in addition to the above.'
+else
+       a=.
 fi
 
 tagged=`git rev-parse --not --verify hold/sa/master`
@@ -27,8 +36,7 @@ list=`git rev-list $tagged refs/heads/master 2>/dev/null`
 if test -n "$list"
 then
        echo
-       echo "* The 'master' branch has these since the last announcement"
-       echo "  in addition to the above."
+       echo "* The 'master' branch has these since the last announcement$a"
        echo
        log $tagged heads/master ^heads/maint
 fi