Joined a project and i need to review code of 6 developers. There have been a lot of developers in the last 2 years. Ran sonar with scm plug in but the top 10 don't include my developers.
Anyway is fine... then I will add to my sonar script to ignore all but the 6. Note I dont want authors but committers and stats and diffs on files ever committed by them.
You can get the names of all the committers directly from Git and pipe them through sort
to filter out duplicates:
git log --pretty=format:"%cn" | sort -u
%cn
is the committer name. See git help log
's Pretty formats section for more options (eg including email addresses).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.