X-Git-Url: http://git.shiar.net/barcat.git/blobdiff_plain/ce4b0d2b0ea9193cf2b557bbdf6b27056390a9ba..6b86aaa55f57299482705d47e972c3c70676b311:/barcat?ds=sidebyside diff --git a/barcat b/barcat index 2a7bdbf..1c567f4 100755 --- a/barcat +++ b/barcat @@ -389,11 +389,10 @@ Or the top 3 most frequent authors with statistics over all: git shortlog -sn | barcat -L3 -s -Activity of the last days: +Activity of the last days (substitute date C<-v-{}d> on BSD): - 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}' | + ( git log --pretty=%ci --since=30day | cut -b-10 + seq 0 30 | xargs -i date +%F -d-{}day ) | sort | uniq -c | awk '$1--' | graph =head1 AUTHOR