From b767822eb393ab4ae4e0caa6a6334516fbb914f1 Mon Sep 17 00:00:00 2001 From: motiprajapati Date: Fri, 30 Nov 2018 13:26:17 +0530 Subject: [PATCH] Respect mailmap author email While using this tool feature "Contribution stats (by author)", I observed that script was not respecting author email as option was being used here was "%ae". Corrected it to "%aE", output looks good now. --- git-quick-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-quick-stats b/git-quick-stats index e613398..b8daef7 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -67,7 +67,7 @@ function option_picked() { function detailedGitStats() { option_picked "Contribution stats (by author):" - git log --use-mailmap --no-merges --numstat --pretty="format:commit %H%nAuthor: %aN <%ae>%nDate: %ad%n%n%w(0,4,4)%B%n" $_since $_until $_pathspec | LC_ALL=C awk ' + git log --use-mailmap --no-merges --numstat --pretty="format:commit %H%nAuthor: %aN <%aE>%nDate: %ad%n%n%w(0,4,4)%B%n" $_since $_until $_pathspec | LC_ALL=C awk ' function printStats(author) { printf "\t%s:\n", author