Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Reproducible Builds
diffoscope-website
Compare revisions
9be483d69767eda3dce297fd6732d770bb81aa39...acde7629f0f6df11b80b2ba9cfea118ae1117a51
Commits (2)
deduplicate contributors by e-mail
· 1ebaa674
FC Stegerman
authored
Jan 18, 2023
1ebaa674
Merge branch 'dedup-contributors' into 'master'
· acde7629
Mattia Rizzolo
authored
Jan 18, 2023
deduplicate contributors by e-mail See merge request
!3
acde7629
Hide whitespace changes
Inline
Side-by-side
update
View file @
acde7629
...
...
@@ -76,10 +76,13 @@ def main():
def
get_contributors
(
git_dir
):
result
=
set
()
emails
=
set
()
for
x
in
git
(
git_dir
,
"log"
,
"--format=%aN"
).
splitlines
():
if
x
!=
"root"
:
result
.
add
(
x
)
for
x
in
git
(
git_dir
,
"log"
,
"--format=%aN|%aE"
).
splitlines
():
name
,
email
=
x
.
rsplit
(
"|"
,
1
)
if
name
!=
"root"
and
email
not
in
emails
:
emails
.
add
(
email
)
result
.
add
(
name
)
return
list
(
sorted
(
result
,
key
=
lambda
x
:
x
.
lower
()))
...
...