git statistics, bash-style
some one-liner git statistics
commit ranking, by author, by commit count
bash
git shortlog -nsproject commits, by day of week
bash
for i in Mon Tue Wed Thu Fri Sat Sun; do
echo $( echo " $i: "; git shortlog -n --format='%ad %s'| grep "$i " | wc -l);
doneproject commits, by day of week, since some date
useful to see a difference when the dev team changes, for example. if you want to count commits before a date, replace --since by --until.
bash
for i in Mon Tue Wed Thu Fri Sat Sun; do
echo $( echo " $i: "; git shortlog -n --format='%ad %s' --since='2011-06-31'| grep "$i " | wc -l);
doneproject commits, by hour of day
bash
for i in `seq -w 0 23`; do
echo $( echo " $i:"; git shortlog -n --format='%ad %s' | grep " $i:" | wc -l);
doneproject commits, by hour of day, since some date
here you can replace --since by --until.
bash
for i in `seq -w 0 23`; do
echo $( echo " $i:"; git shortlog -n --format='%ad %s' --until='2011-06-31' | grep " $i:" | wc -l);
donereference: jazzy coding