We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0edcf8b + 5feb0db commit 4de7b34Copy full SHA for 4de7b34
bin/git-summary
@@ -90,17 +90,18 @@ file_count() {
90
91
dedup_by_email() {
92
# in:
93
- # 27 luo zexuan <luozexuan@xxx.com>
+ # 27 luo zexuan <LuoZexuan@xxx.com>
94
# 7 罗泽轩 <[email protected]>
95
# out:
96
# 34 luo zexuan
97
LC_ALL=C awk '
98
{
99
sum += $1
100
- if ($NF in emails) {
101
- emails[$NF] += $1
+ last_field = tolower($NF)
+ if (last_field in emails) {
102
+ emails[last_field] += $1
103
} else {
- email = $NF
104
+ email = last_field
105
emails[email] = $1
106
# set commits/email to empty
107
$1=$NF=""
0 commit comments