aboutsummaryrefslogtreecommitdiffstats
path: root/git-stats.sh
diff options
context:
space:
mode:
authorTeddy Wing2015-08-17 23:22:06 -0400
committerTeddy Wing2015-08-17 23:22:06 -0400
commit637c16eabbcd48c889b424edbf8823d10d9cb3f5 (patch)
tree2649d25c37db9b7298c262e36a58dc47fd54d56b /git-stats.sh
parentd0160d35bf973090a1b2027855ad069b4495c36f (diff)
downloadgit-stats-637c16eabbcd48c889b424edbf8823d10d9cb3f5.tar.bz2
git-stats.sh: Move shortlog output to variable
Capture the shortlog output so we can use it later on.
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