From: Mischa POSLAWSKY Date: Mon, 9 Sep 2019 16:56:36 +0000 (+0200) Subject: additional git example for date history X-Git-Tag: v1.05~13 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/ce4b0d2b0ea9193cf2b557bbdf6b27056390a9ba additional git example for date history Simplified version of a longtime alias of mine. --- diff --git a/barcat b/barcat index c1e1d07..2a7bdbf 100755 --- 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