2006-02-19 08:38:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Prepare "What's in git.git"
|
|
|
|
|
2006-04-21 21:43:30 +00:00
|
|
|
maint_at=$(git rev-parse --verify refs/heads/maint)
|
2006-04-14 20:54:38 +00:00
|
|
|
master_at=$(git rev-parse --verify refs/heads/master)
|
2008-08-06 04:42:45 +00:00
|
|
|
maint_was=$(git rev-parse --verify refs/hold/sa/maint)
|
|
|
|
master_was=$(git rev-parse --verify refs/hold/sa/master)
|
2006-04-14 20:54:38 +00:00
|
|
|
|
2006-06-08 21:03:38 +00:00
|
|
|
log () {
|
2007-12-01 21:40:11 +00:00
|
|
|
git shortlog -w76,2,4 --no-merges "$@"
|
2006-06-08 21:03:38 +00:00
|
|
|
}
|
|
|
|
|
2008-08-07 01:38:56 +00:00
|
|
|
one () {
|
|
|
|
git show -s --pretty="format:%h (%s)" "$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
eval $(LC_ALL=C date +"monthname=%b month=%m year=%Y date=%d dow=%a")
|
|
|
|
|
|
|
|
lead="whats/in/$year/$month"
|
|
|
|
issue=$(
|
|
|
|
cd Meta &&
|
|
|
|
git ls-tree -r --name-only HEAD "$lead" | tail -n 1
|
|
|
|
)
|
|
|
|
if test -n "$issue"
|
|
|
|
then
|
|
|
|
issue=$( expr "$issue" : '.*/0*\([1-9][0-9]*\)\.txt$' )
|
|
|
|
issue=$(( $issue + 1 ))
|
|
|
|
else
|
|
|
|
issue=1
|
|
|
|
fi
|
|
|
|
issue=$( printf "%02d" $issue )
|
|
|
|
|
|
|
|
mkdir -p "Meta/$lead"
|
|
|
|
exec >"Meta/$lead/$issue.txt"
|
|
|
|
|
|
|
|
cat <<EOF
|
2008-12-03 06:55:44 +00:00
|
|
|
To: git@vger.kernel.org
|
2008-08-07 01:38:56 +00:00
|
|
|
Subject: What's in git.git ($monthname $year, #$issue; $dow, $date)
|
2008-08-10 07:46:38 +00:00
|
|
|
X-maint-at: $maint_at
|
|
|
|
X-master-at: $master_at
|
|
|
|
X-maint-was: $maint_was
|
|
|
|
X-master-was: $master_was
|
2008-08-07 01:38:56 +00:00
|
|
|
|
|
|
|
What's in git.git ($monthname $year, #$issue; $dow, $date)
|
|
|
|
|
|
|
|
maint $(one maint)
|
|
|
|
master $(one master)
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
BLURB HERE
|
|
|
|
EOF
|
2006-02-19 08:54:54 +00:00
|
|
|
|
2007-05-23 07:01:50 +00:00
|
|
|
tagged=`git rev-parse --not --verify hold/sa/maint`
|
2007-12-15 06:43:05 +00:00
|
|
|
list=`git rev-list $tagged refs/heads/maint 2>/dev/null`
|
2008-08-06 04:42:45 +00:00
|
|
|
a=
|
2006-04-21 21:43:30 +00:00
|
|
|
if test -n "$list"
|
|
|
|
then
|
|
|
|
echo
|
|
|
|
echo "* The 'maint' branch has these fixes since the last announcement."
|
|
|
|
echo
|
2006-06-08 21:03:38 +00:00
|
|
|
log $tagged heads/maint
|
2008-08-06 04:42:45 +00:00
|
|
|
a='
|
|
|
|
in addition to the above.'
|
|
|
|
else
|
|
|
|
a=.
|
2006-04-21 21:43:30 +00:00
|
|
|
fi
|
|
|
|
|
2007-05-23 07:01:50 +00:00
|
|
|
tagged=`git rev-parse --not --verify hold/sa/master`
|
2007-12-15 06:43:05 +00:00
|
|
|
list=`git rev-list $tagged refs/heads/master 2>/dev/null`
|
2006-03-02 02:42:03 +00:00
|
|
|
if test -n "$list"
|
|
|
|
then
|
|
|
|
echo
|
2008-08-06 04:42:45 +00:00
|
|
|
echo "* The 'master' branch has these since the last announcement$a"
|
2006-03-02 02:42:03 +00:00
|
|
|
echo
|
2007-03-05 06:32:22 +00:00
|
|
|
log $tagged heads/master ^heads/maint
|
2006-03-02 02:42:03 +00:00
|
|
|
fi
|