]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/WCBCC: do not look at branches that no longer exist
authorJunio C Hamano <gitster@pobox.com>
Fri, 10 Mar 2017 22:44:24 +0000 (14:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Mar 2017 22:44:24 +0000 (14:44 -0800)
WCBCC

diff --git a/WCBCC b/WCBCC
index e16d0a238a5fa79e7ff2d4ac45007c0ba895dca0..e0fe507b1a64f7036e164796dd92e4456b96ea98 100755 (executable)
--- 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/$/,/'
-
-
-