Redo Summary script to use reflog fully
Junio C Hamano committed
Aug 29, 2007 at 01:33 UTC
6c950dd3fa6851d9e33ab3020a5474e1730160d5
1 file changed
+3
-3
Summary
+3
-3
index c8943dbd98..60976cd444 100755
--- a/Summary
+++ b/Summary
@@ -6,9 +6,9 @@ trap 'rm -f $tmp-*' 0
since="$1"
until="$2"
-git-rev-list --no-merges "^master@{$1}" "master@{$2}" >"$tmp-0.txt"
-top=$(head -n 1 "$tmp-0.txt")
-bottom=$(tail -n 1 "$tmp-0.txt")
+git-rev-list --no-merges "master@{$1}..master@{$2}" >"$tmp-0.txt"
+top="master@{$until}"
+bottom="master@{$since}"
num_patches=$(git rev-list --no-merges $bottom..$top | wc -l)
git shortlog -s -n --no-merges $bottom..$top >"$tmp-0.txt"