]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Redo Summary script to use reflog fully
authorJunio C Hamano <gitster@pobox.com>
Wed, 29 Aug 2007 08:33:37 +0000 (01:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Aug 2007 08:33:37 +0000 (01:33 -0700)
Summary

diff --git a/Summary b/Summary
index c8943dbd98f4173d804a198ab20466ee19288c77..60976cd444b249f984af57e46d1be0977cf22c89 100755 (executable)
--- 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"