]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Added script that plots intensity of git commits :-)
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 17 Apr 2008 22:14:32 +0000 (00:14 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 17 Apr 2008 22:14:32 +0000 (00:14 +0200)
build/_infrastructure/commit-graph.pl [new file with mode: 0755]

diff --git a/build/_infrastructure/commit-graph.pl b/build/_infrastructure/commit-graph.pl
new file mode 100755 (executable)
index 0000000..bb7a8fc
--- /dev/null
@@ -0,0 +1,26 @@
+#!/usr/bin/perl -w
+
+@commits = `git log --pretty=format:"%ct"|sort -n`;
+$i = 1;
+open GNUPLOT, "|gnuplot -persist";
+print GNUPLOT <<EOF;
+set xdata time
+set timefmt "%s"
+set format x "%m/%y" 
+set xlabel "Date"
+set ylabel "Commit number"
+plot '-' using 1:2 notitle
+EOF
+foreach (@commits) {
+    chop;
+    print GNUPLOT "$_ $i\n";
+    $i++;
+}
+print GNUPLOT "e\n";
+
+#            set xdata time
+#            set timefmt "%m/%d/%y"
+#            set xrange ["03/21/95":"03/22/95"]
+#            set format x "%m/%d"
+#            set timefmt "%m/%d/%y %H:%M"
+#            plot "data" using 1:3