From: Junio C Hamano Date: Fri, 10 Mar 2017 22:44:24 +0000 (-0800) Subject: Meta/WCBCC: do not look at branches that no longer exist X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1d584cba0a8d48ff3660a7a5854386bd0c768f8;p=thirdparty%2Fgit.git Meta/WCBCC: do not look at branches that no longer exist --- diff --git a/WCBCC b/WCBCC 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/.*