mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Adopted git --dedup-by-email to the project coding style
This commit is contained in:
parent
703a8481c6
commit
5feb0db212
|
|
@ -87,11 +87,11 @@ dedup_by_email() {
|
|||
LC_ALL=C awk '
|
||||
{
|
||||
sum += $1
|
||||
lastField = tolower($NF)
|
||||
if (lastField in emails) {
|
||||
emails[lastField] += $1
|
||||
last_field = tolower($NF)
|
||||
if (last_field in emails) {
|
||||
emails[last_field] += $1
|
||||
} else {
|
||||
email = lastField
|
||||
email = last_field
|
||||
emails[email] = $1
|
||||
# set commits/email to empty
|
||||
$1=$NF=""
|
||||
|
|
|
|||
Loading…
Reference in a new issue