News for hackers. Stuff that matters.
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?
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.

Re:Show HN: Contribution Graph as a Git Command by mmcclimon on Friday May 27, 2022 @05:40PM (#31535249)
Yeah, `git log --format=%ae | sed s/.*@//` will get you most of the way there, and then it’s down to how you want to deal with the domains themselves, as you say!