diff options
| author | Teddy Wing | 2015-08-18 00:26:38 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-08-18 00:26:38 -0400 |
| commit | 4cb3e9f6dd47b7042802a25722c23f422d6742b6 (patch) | |
| tree | dbe703fbbeda02dae0ce3928135b07f6d1fced41 | |
| parent | 637c16eabbcd48c889b424edbf8823d10d9cb3f5 (diff) | |
| download | git-stats-4cb3e9f6dd47b7042802a25722c23f422d6742b6.tar.bz2 | |
git-stats.sh: Include full name in graph
Through the magic of awk!
| -rwxr-xr-x | git-stats.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/git-stats.sh b/git-stats.sh index 8e5e714..3a9f834 100755 --- a/git-stats.sh +++ b/git-stats.sh @@ -19,4 +19,10 @@ cd $GIT_REPO shortlog=$(git shortlog -ns --no-merges) -echo "$shortlog" | awk '{printf "%s:%s\n", $2, $1}' | asciigraph -l "$1" --color +echo "$shortlog" | awk '{ + for (i = 2; i <= NF; i++) { + printf "%s", $i + if (i != NF) printf " " + } + printf ":%s\n", $1 +}' | asciigraph -l "$1" --color |
