Skip to content

Instantly share code, notes, and snippets.

@mehdichaouch
Created April 25, 2017 19:51
Show Gist options
  • Save mehdichaouch/5a58fdd21603a24b8fab582f3b6880d3 to your computer and use it in GitHub Desktop.
Save mehdichaouch/5a58fdd21603a24b8fab582f3b6880d3 to your computer and use it in GitHub Desktop.
Gitinspector - The statistical analysis tool for git repositories
#!/bin/bash
# https://github.com/ejwa/gitinspector
cd /var/www/gitinspector
export LANG=fr
REPO=/var/www/ESD3R/
DEST=~
DATE=$(date --date="7 days ago" +"%Y-%m-%d")
date && python gitinspector.py -x author:"Mehdi Chaouch" -wHTlrm --format=html --exclude=../ESD3R/puphpet/ $REPO > $DEST/stats.html && date
echo.
echo.
date && python gitinspector.py --since=$DATE -wHTlrm --format=html --exclude=../ESD3RT65VF/puphpet/ $REPO > $DEST/stats_week.html && date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment