index e32c979e05f82dcb08fda77811460c3a53555800..efd7bf1282c9e328518f437f66643683572042b4 100755 (executable)
--- a/contrib/announcement.sh
+++ b/contrib/announcement.sh
# Prepare the content of the next tig release announcement.
# Usage: $0 [revision]
#
-# Copyright (c) 2008 Jonas Fonseca <fonseca@diku.dk>
+# Copyright (c) 2008-2010 Jonas Fonseca <fonseca@diku.dk>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
SITES="${root}SITES"
from="$(sed -n '7,/^tig-/p' < "$NEWS" | tail -n 1 | cut -d' ' -f 1)"
to="${1-HEAD}"
+short=
+
+test -n "$(git rev-list --skip=50 $from..$to)" && short=-s
cat <<EOF
$to
Change summary
--------------
-The diffstat and shortlog summary for changes made in this release.
-
-$(git shortlog -s $from..$to)
+The diffstat and log summary for changes made in this release.
$(git diff-tree --stat=72 $from..$to)
+
+$(git shortlog $short $from..$to)
EOF