Skip to content

Instantly share code, notes, and snippets.

@lexqt
lexqt / git_stats.sh
Created May 17, 2012 17:11 — forked from lonnen/stats.sh
git stats: insertions, deletions, files, commits
#!/bin/bash
if [[ $1 == "" && $2 == "" ]]
then
echo "USAGE: $0 SINCE_DATE [AUTHOR_PATTERN]"
exit
fi
DATE=$1 # 10-1-2011, 2012-04-22, etc
AUTHOR=$2 # author pattern (regexp)