commit 427682b1229994e84ddb4fd3eb3fec0b5d39a2ba Author: vlw Date: Wed Apr 8 19:19:44 2026 +0200 add: git-stats.sh diff --git a/git-stats.sh b/git-stats.sh new file mode 100644 index 0000000..b07d1f1 --- /dev/null +++ b/git-stats.sh @@ -0,0 +1,26 @@ +{ + echo "# What Changes the Most" + echo "---------------------------------------" + git log --format=format: --name-only --since="1 year ago" | sort | uniq -c | sort -nr | head -20 + echo "" + + echo "# Who Built This" + echo "---------------------------------------" + git shortlog -sn --no-merges + echo "" + + echo "# Where Do Bugs Cluster" + echo "---------------------------------------" + git log -i -E --grep="fix|bug|broken" --name-only --format='' | sort | uniq -c | sort -nr | head -20 + echo "" + + echo "# Is This Project Accelerating or Dying" + echo "---------------------------------------" + git log --format='%ad' --date=format:'%Y-%m' | sort | uniq -c + echo "" + + echo "# How Often Is the Team Firefighting" + echo "---------------------------------------" + git log --oneline --since="1 year ago" | grep -iE 'revert|hotfix|emergency|rollback' + echo "" +} | less