aboutsummaryrefslogtreecommitdiffstats
path: root/git-stats.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-stats.sh')
-rwxr-xr-xgit-stats.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-stats.sh b/git-stats.sh
index 63eab68..8e5e714 100755
--- a/git-stats.sh
+++ b/git-stats.sh
@@ -17,4 +17,6 @@ GIT_REPO=$1
cd $GIT_REPO
-git shortlog -ns --no-merges | awk '{printf "%s:%s\n", $2, $1}' | asciigraph -l "$1" --color
+shortlog=$(git shortlog -ns --no-merges)
+
+echo "$shortlog" | awk '{printf "%s:%s\n", $2, $1}' | asciigraph -l "$1" --color