Our company is divided in teams and we perform code reviews before sending our code to the QA guys.
Usually, any code we touch is reviewed by someone inside the same team (A), but in some cases we also need to touch code from another team (B).
For those cases, the code review should be two-fold: one part reviewed by team A, and another part reviewed by team B.
Our problem is that many times the team A does not send the code to be reviewed by team B and this causes team B to be ignorant of this new code.
What I'd like to do is to periodically run a script to find commits inside certain parts of the code (usually subdirectories with modules our team handles) made by any person not belonging to our team, but unfortunately the --not
argument in git log
does not seem to work with --author
so I cannot happily run git log --not --author "John" --author "Paul" --author "Ringo" module/A module/B module/C
My requirement translates to something like "list all commits touching module/A, module/B or module/C done by someone that's not John, Paul or Ringo"
Is there any way to do this using "official" tools? I would be interested in an open-source script too if it means doing this results in a one-liner or close to that.