-
-
Save patrickdevivo/b6c2feb9c19a9180debbb4d30b5ffeac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- commit counts by author email domain | |
SELECT | |
count(*), | |
substr(author_email, instr(author_email, '@')+1) AS email_domain -- https://sqlite.org/lang_corefunc.html | |
FROM commits | |
WHERE parents < 2 -- ignore merge commits | |
GROUP BY email_domain | |
ORDER BY count(*) DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment