additional git example for date history
[barcat.git] / barcat
diff --git a/barcat b/barcat
index c1e1d079ce40d75a5cf04a5a68fd499d222a2cd7..2a7bdbf2c08ee9b7edfeea8d8fb36e83248ae553 100755 (executable)
--- a/barcat
+++ b/barcat
@@ -389,6 +389,13 @@ Or the top 3 most frequent authors with statistics over all:
 
     git shortlog -sn | barcat -L3 -s
 
+Activity of the last days:
+
+    git log --pretty=%cd --date=format:%F --since=1month |
+    perl -MTime::Piece -pE
+        'for ($t //= localtime; $t->ymd gt $_; $t -= 24*60*60) {say $t->ymd}' |
+    sort | uniq -c | awk '$1--' | graph
+
 =head1 AUTHOR
 
 Mischa POSLAWSKY <perl@shiar.org>