【问题标题】:How to find number of commits done to a file across a repository如何在存储库中查找对文件的提交次数
【发布时间】:2015-07-04 03:00:56
【问题描述】:

我正在看一个视频“把你的代码当作犯罪现场”。

http://www.infoq.com/presentations/code-bugs-legacy-pitfalls

为了了解他所说的代码的复杂性,以查找每个文件的提交次数。这意味着这些文件需要更多的维护。我如何找到像这个人在这个视频中所做的热点。

这是该视频中的 13:20 - 14:20 之间。

【问题讨论】:

    标签: git github version-control git-svn git-commit


    【解决方案1】:

    在“How to count number of commits per file pathname by author in a Git repository?”之后,您可以开始:

    git log --name-only --pretty=format: | sort | uniq -c | sort
    

    排序列表将帮助您发现具有大量提交的文件。

    【讨论】:

      猜你喜欢
      • 2013-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-05
      • 1970-01-01
      • 1970-01-01
      • 2014-09-26
      相关资源
      最近更新 更多