]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/WCBCC: an experiment
authorJunio C Hamano <gitster@pobox.com>
Mon, 6 Feb 2017 22:34:37 +0000 (14:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Feb 2017 22:34:37 +0000 (14:34 -0800)
WCBCC [new file with mode: 0755]

diff --git a/WCBCC b/WCBCC
new file mode 100755 (executable)
index 0000000..e16d0a2
--- /dev/null
+++ b/WCBCC
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+BASE=${1-HEAD}
+
+(
+       echo pu
+       sed -ne 's/^\* \([^ ]*\) ([-0-9]*) [1-9][0-9]* commits\{0,1\}$/\1/p' \
+               Meta/whats-cooking.txt
+
+       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/$/,/'
+
+
+