Skip to content

Instantly share code, notes, and snippets.

@mmozuras
Created May 14, 2014 18:48
Show Gist options
  • Save mmozuras/94df6ed621c768224c7a to your computer and use it in GitHub Desktop.
Save mmozuras/94df6ed621c768224c7a to your computer and use it in GitHub Desktop.
Bash script to see how fixes are trending in current repo (per committer)
#!/bin/bash
for i in {0..24}
do
ii=$(($i + 1))
fixes=`git log --since="${ii} months ago" --until="${i} months ago" | grep -i fix | wc -l`
committers=`git log --since="${ii} months ago" --until="${i} months ago" --pretty=format:"%an" | sort -u | wc -l`
echo `bc -l <<< "${fixes} / ${committers}"`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment