简体   繁体   English

声纳/ git查看所有提交者

[英]sonar / git see all committers

Joined a project and i need to review code of 6 developers. 加入了一个项目,我需要检查6个开发人员的代码。 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. 用scm插件运行声纳,但前10名不包括我的开发人员。

  1. How can i get list of all developers from Sonar SCM (Sql or thru the web ui - its all on my local)? 我如何从Sonar SCM(SQL或通过Web ui-全部在我的本地)中获取所有开发人员的清单? OR 要么
  2. Can I get a list of all unique committers via git? 我可以通过git获得所有唯一提交者的列表吗?

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. 无论如何都很好...然后我将添加到声纳脚本中以忽略除6之外的所有内容。请注意,我不希望作者,而是提交者,统计信息和他们提交的文件的差异。

You can get the names of all the committers directly from Git and pipe them through sort to filter out duplicates: 您可以直接从Git获取所有提交者的名称,并通过sort将它们提交以过滤出重复项:

git log --pretty=format:"%cn" | sort -u

%cn is the committer name. %cn是提交者名称。 See git help log 's Pretty formats section for more options (eg including email addresses). 请参阅git help log漂亮格式”部分,以获取更多选项(例如,包括电子邮件地址)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM