Summary: use reflog
parent
67b8da7260
commit
84f76d066e
17
Summary
17
Summary
|
|
@ -6,9 +6,19 @@ trap 'rm -f $tmp-*' 0
|
||||||
since="$1"
|
since="$1"
|
||||||
until="$2"
|
until="$2"
|
||||||
|
|
||||||
git rev-list --no-merges "master@{$1}..master@{$2}" >"$tmp-0.txt"
|
case 0 in
|
||||||
top="master@{$until}"
|
1)
|
||||||
bottom="master@{$since}"
|
bottom=$(git rev-parse master@{"$1"})
|
||||||
|
top=$(git rev-parse master@{"$2"})
|
||||||
|
;;
|
||||||
|
0)
|
||||||
|
git rev-list --first-parent --since="$since" --until="$until" \
|
||||||
|
master >"$tmp-1" &&
|
||||||
|
bottom=$(tail -n 1 "$tmp-1") &&
|
||||||
|
top=$(head -n 1 "$tmp-1") &&
|
||||||
|
rm -f "$tmp-1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
num_patches=$(git rev-list --no-merges $bottom..$top | wc -l)
|
num_patches=$(git rev-list --no-merges $bottom..$top | wc -l)
|
||||||
git shortlog -s -n --no-merges $bottom..$top >"$tmp-0.txt"
|
git shortlog -s -n --no-merges $bottom..$top >"$tmp-0.txt"
|
||||||
|
|
@ -34,3 +44,4 @@ EOF
|
||||||
|
|
||||||
git shortlog -w72,2,4 --no-merges $bottom..$top
|
git shortlog -w72,2,4 --no-merges $bottom..$top
|
||||||
|
|
||||||
|
git diff --dirstat $bottom..$top
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue