如何找到提交次数最多的组件?
How to find a component with the most commits?
作为一名测试人员,在过去,我经常能够在我们的系统中找到一个容易出现缺陷的组件,但寻找那些经常被更改的组件。在 SVN 中,我知道该怎么做,但在 GitHub 中,我似乎找不到方法。
如“Finding most changed files in Git", you do have the git-extras/git-effort or git-most 脚本中所述(如果它在您的 PATH
中,您可以使用 git effort
或 git 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,您 the statistics API 的重点是 数量 的更改,而不是实际的文件列表.
作为一名测试人员,在过去,我经常能够在我们的系统中找到一个容易出现缺陷的组件,但寻找那些经常被更改的组件。在 SVN 中,我知道该怎么做,但在 GitHub 中,我似乎找不到方法。
如“Finding most changed files in Git", you do have the git-extras/git-effort or git-most 脚本中所述(如果它在您的 PATH
中,您可以使用 git effort
或 git 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,您 the statistics API 的重点是 数量 的更改,而不是实际的文件列表.