I need list of commits made by specific author when project is developed using pair programing approach.
Basically pivotal's script is used to define a pair:
git pair uo ut
Than commits have this kind of author:
User One & User Two <[email protected]>
There is not constant pairs. Every day different pairs are made and I need list of commits made by one specific user during some period (some crapy requirement from legal department related to copyrights).
The simplest method is to take all the authors, grep for your author, and then run git log searching for the full author's name (i.e. the pairs in which your author worked). Something along the lines of:
git log --format='%aN' | grep "some name" | xargs -Xmyauth git log --author=myauth
Feel free to use a --pretty
in the git log to make the output as you see fit.