unixorn/git-extra-commands

View on GitHub
bin/git-commits-per-day

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
#
# Average commits per day

git log --format=format:"%cd" --date=short --no-merges --all | uniq -c | awk '{ total += $1; count++ } END { print total/count }'