git/WI
Junio C Hamano 38fe95c56d Move ko-master, sa/master and friends out of tags
Otherwise they make "git-describe --contains" useless.
2007-05-23 00:01:50 -07:00

42 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
# Prepare "What's in git.git"
maint_at=$(git rev-parse --verify refs/heads/maint)
master_at=$(git rev-parse --verify refs/heads/master)
log () {
git shortlog --no-merges "$@" |
perl -pe '
if (/^ /) { s// /; }
elsif (!/^$/) { s/^/ / }
'
}
echo "From: Junio C Hamano <junkio@cox.net>"
echo "Subject: What's in git.git (stable)"
echo "X-maint-at: $maint_at"
echo "X-master-at: $master_at"
echo "Content-Type: text/plain; charset=utf-8"
echo "Content-Transfer-Encoding: 8bit"
tagged=`git rev-parse --not --verify hold/sa/maint`
list=`git-rev-list $tagged refs/heads/maint 2>/dev/null`
if test -n "$list"
then
echo
echo "* The 'maint' branch has these fixes since the last announcement."
echo
log $tagged heads/maint
fi
tagged=`git rev-parse --not --verify hold/sa/master`
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
log $tagged heads/master ^heads/maint
fi