Meta/WCBCC: do not look at branches that no longer exist

Junio C Hamano committed Mar 10, 2017 at 14:44 UTC b1d584cba0a8d48ff3660a7a5854386bd0c768f8
1 file changed +6 -5
WCBCC
+6 -5
@@ -5,13 +5,14 @@ BASE=${1-HEAD}
5 (
6 echo pu
7 sed -ne 's/^\* \([^ ]*\) ([-0-9]*) [1-9][0-9]* commits\{0,1\}$/\1/p' \
8 - Meta/whats-cooking.txt
9 -
8 + Meta/whats-cooking.txt |
9 + while read branch
10 + do
11 + git show-ref "refs/heads/$branch" >/dev/null &&
12 + echo "$branch"
13 + done
14 git -C Meta/ cat-file blob "${BASE}:whats-cooking.txt" |
15 sed -ne 's/^X-master-at: / --not /p' -e '/^$/q'
16 ) |
17 xargs git shortlog -s -e --no-merges |
18 sed -e 's/.*</ </' -e '$q' -e 's/$/,/'
15 -
16 -
17 -