git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date alternative on BSD variants including OSX
[barcat.git]
/
barcat
diff --git
a/barcat
b/barcat
index 2a7bdbf2c08ee9b7edfeea8d8fb36e83248ae553..1c567f4f14c38b9f005f9cd8e25df80eea4deb9c 100755
(executable)
--- 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
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
sort | uniq -c | awk '$1--' | graph
=head1 AUTHOR