@leroysheep / BookAlchemy / commits / b1d584cba0

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
index e16d0a238a..e0fe507b1a 100755 --- a/WCBCC +++ b/WCBCC @@ -5,13 +5,14 @@ BASE=${1-HEAD} ( echo pu sed -ne 's/^\* \([^ ]*\) ([-0-9]*) [1-9][0-9]* commits\{0,1\}$/\1/p' \ - Meta/whats-cooking.txt - + Meta/whats-cooking.txt | + while read branch + do + git show-ref "refs/heads/$branch" >/dev/null && + echo "$branch" + done git -C Meta/ cat-file blob "${BASE}:whats-cooking.txt" | sed -ne 's/^X-master-at: / --not /p' -e '/^$/q' ) | xargs git shortlog -s -e --no-merges | sed -e 's/.*</ </' -e '$q' -e 's/$/,/' - - -