Permalink
Browse files

Add first -> last commits for each author.

  • Loading branch information...
1 parent 57b9285 commit 7591ddb5d5c8f80ed31a304c4b7bb1f1228a18a2 @kidd kidd committed Jan 17, 2017
Showing with 7 additions and 0 deletions.
  1. +7 −0 git-quick-stats
View
@@ -36,6 +36,7 @@ function detailedGitStats() {
git log --no-merges --numstat | awk '
function printStats(author) {
printf "%s:\n", author
+ printf " first -> last: %s -> %s \n", first[author] , last[author]
printf " insertions: %d (%.0f%%)\n", more[author], (more[author] / more["total"] * 100)
printf " deletions: %d (%.0f%%)\n", less[author], (less[author] / less["total"] * 100)
printf " files: %d (%.0f%%)\n", file[author], (file[author] / file["total"] * 100)
@@ -48,6 +49,12 @@ function detailedGitStats() {
commits["total"] += 1
}
+ /^Date:/ {
+ $1="";
+ first[author] = substr($0, 2)
+ if(last[author] == "" ) { last[author] = first[author] }
+ }
+
/^[0-9]/ {
more[author] += $1
less[author] += $2

0 comments on commit 7591ddb

Please sign in to comment.