[Git][reproducible-builds/diffoscope-website][master] 2 commits: deduplicate contributors by e-mail

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Wed Jan 18 15:58:05 UTC 2023



Mattia Rizzolo pushed to branch master at Reproducible Builds / diffoscope-website


Commits:
1ebaa674 by FC Stegerman at 2023-01-18T15:14:04+01:00
deduplicate contributors by e-mail

- - - - -
acde7629 by Mattia Rizzolo at 2023-01-18T15:57:57+00:00
Merge branch 'dedup-contributors' into 'master'

deduplicate contributors by e-mail

See merge request reproducible-builds/diffoscope-website!3
- - - - -


1 changed file:

- update


Changes:

=====================================
update
=====================================
@@ -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()))
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/-/compare/9be483d69767eda3dce297fd6732d770bb81aa39...acde7629f0f6df11b80b2ba9cfea118ae1117a51

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope-website/-/compare/9be483d69767eda3dce297fd6732d770bb81aa39...acde7629f0f6df11b80b2ba9cfea118ae1117a51
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20230118/d66ca706/attachment.htm>


More information about the rb-commits mailing list