From ce4b0d2b0ea9193cf2b557bbdf6b27056390a9ba Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 9 Sep 2019 18:56:36 +0200 Subject: [PATCH] additional git example for date history Simplified version of a longtime alias of mine. --- barcat | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.30.0