]> xenbits.xensource.com Git - people/iwj/talks/2014-osstest.git/commitdiff
wip
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 21 Jul 2014 15:37:08 +0000 (16:37 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 21 Jul 2014 15:37:08 +0000 (16:37 +0100)
git-contrib-graph [new file with mode: 0755]

diff --git a/git-contrib-graph b/git-contrib-graph
new file mode 100755 (executable)
index 0000000..605a7d6
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -e
+: ${OSSTEST_GIT:=$HOME/work/testing.git/.git}
+
+git --git-dir=$OSSTEST_GIT ls-files |
+(cd $OSSTEST_GIT/.. && xargs -n1 \
+git blame -M -C --date=iso) |
+perl -wl -ne '
+        use strict;
+        our %ym;
+        m/\s(\d+-\d+)-\d+\s/ or die "$_ ?";
+        $ym{$1}++;
+        END {
+                foreach my $k (sort keys %ym) {
+                        print "\"$k\" $ym{$k}";
+                }
+        }
+'