3 ms·
Does anyone know of a way to list number of commits to a project by email domain? Is that even possible?
by floatinglotus 4y ago
Does anyone know of a way to list number of commits to a project by email domain? Is that even possible?
- woodruffw 4y agoI 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.
- mmcclimon 4y agoYeah, `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!
- csc-- 4y agoYou could try mergestat (formerly known as askgit) which lets you run SQL queries against a git repo https://github.com/mergestat/mergestat https://github.com/mergestat/mergestat