Re:Show HN: Contribution Graph as a Git Command
by floatinglotus on Friday May 27, 2022 @05:07PM
(#31534908)
Does anyone know of a way to list number of commits to a project by email domain? Is that even possible?
[ Parent
| on HN ]
Re:Show HN: Contribution Graph as a Git Command
by csc-- on Friday May 27, 2022 @05:38PM
(#31535242)
You could try mergestat (formerly known as askgit) which lets you run SQL queries against a git repo
https://github.com/mergestat/mergestat
Re:Show HN: Contribution Graph as a Git Command
by woodruffw on Friday May 27, 2022 @05:12PM
(#31534965)
I don't see why it wouldn't be possible -- you can use `git log` with a formatting rule (like `--pretty=email`), and then parse the `From:` fields and group them by domain.
The rest is application specific: you'll need to determine whether you want to/should normalize subdomains to their parent, for example.