Code

Initialise views and screens with nonzero size.
[tig.git] / contrib / announcement.sh
index e32c979e05f82dcb08fda77811460c3a53555800..efd7bf1282c9e328518f437f66643683572042b4 100755 (executable)
@@ -3,7 +3,7 @@
 # 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
@@ -20,6 +20,9 @@ NEWS="${root}NEWS"
 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
@@ -42,9 +45,9 @@ $(sed -n '7,/^tig-/p' < "$NEWS" | sed '/^tig-/d')
 
 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