diff options
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 |
