Skip to content

Instantly share code, notes, and snippets.

@jp
Created March 15, 2017 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jp/9b10cd8a00df8b98c1eb4841e677feec to your computer and use it in GitHub Desktop.
Save jp/9b10cd8a00df8b98c1eb4841e677feec to your computer and use it in GitHub Desktop.
Plato generate report over multiple months
d=2016-08-17
while [ "$d" != 2017-03-17 ]; do
d=$(date -I -d "$d + 1 month")
git checkout "master@{$d 00:00:00}"
plato -r -d /tmp/report -D $(date -d "$d 00:00:00" +"%s") app/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment