【问题标题】:How to find a component with the most commits?如何找到提交次数最多的组件?
【发布时间】:2017-12-20 14:25:42
【问题描述】:

作为一名测试人员,过去,我经常能够在我们的系统中找到容易出现缺陷的组件,但会寻找那些经常更改的组件。在 SVN 中,我知道该怎么做,但在 GitHub 中,我似乎找不到方法。

【问题讨论】:

    标签: github git-commit


    【解决方案1】:

    如“Finding most changed files in Git”中所述,您确实拥有git-extras/git-effortgit-most 脚本(如果它在您的PATH 中,您可以使用git effortgit most 调用,就像任何git-xxx 脚本)。
    但您需要先克隆 GitHub 存储库。

    例子:

    C:\Users\vonc\data\git\git>git most
    ......... [wait a long time] .........
    1585    Makefile
    1060    cache.h
    748     gitweb/gitweb.perl
    730     refs/files-backend.c
    714     diff.c
    670     Documentation/config.txt
    659     refs.c
    624     git-svn.perl
    600     sha1_file.c
    517     contrib/completion/git-completion.bash
    501     builtin/apply.c
    499     Documentation/git.txt
    491     GIT-VERSION-GEN
    433     git-p4.py
    413     git.c
    407     builtin/pack-objects.c
    401     revision.c
    376     builtin/commit.c
    336     merge-recursive.c
    ...
    

    这不会直接转化为 GitHub,您在 GitHub 上拥有 the statistics API,专注于更改的数量,而不是实际的文件列表。

    【讨论】:

      猜你喜欢
      • 2011-08-05
      • 1970-01-01
      • 1970-01-01
      • 2019-12-17
      • 1970-01-01
      • 2017-12-20
      • 2018-05-06
      • 1970-01-01
      • 2011-06-14
      相关资源
      最近更新 更多