diff options
| author | Teddy Wing | 2015-08-17 23:12:09 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2015-08-17 23:12:09 -0400 | 
| commit | 3c1f27346f75caf64ed0c4138009510133f8c683 (patch) | |
| tree | 02a8b488a1d30198c5906731e46190721c86fd2e /git-stats.sh | |
| parent | 9359ea2cedb1c6412f1a7ae87dd7ae5500437091 (diff) | |
| download | git-stats-3c1f27346f75caf64ed0c4138009510133f8c683.tar.bz2 | |
Add git-stats.sh to output the shortlog in graph form
Gets the git shortlog and outputs a graph of the commit count.
TODO: Only first names are extracted with awk. Get full names.
Diffstat (limited to 'git-stats.sh')
| -rwxr-xr-x | git-stats.sh | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/git-stats.sh b/git-stats.sh new file mode 100755 index 0000000..f63fe4d --- /dev/null +++ b/git-stats.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env sh + +function usage () { +	echo "Usage: $0 path/to/git/repository" +} + +if [ $# != 1 ]; then +	usage +	exit 1 +fi + + +GIT_REPO=$1 + +cd $GIT_REPO + +git shortlog -ns --no-merges | awk '{printf "%s:%s\n", $2, $1}' | asciigraph  -l "$1" --color | 
