3

我认为git bisect需要太多的打字。

要检查最后 N 次提交,我必须这样做:

user@host> git bisect start HEAD HEAD~10
user@host> git bisect run py.test -k test_something
 ...
c8bed9b56861ea626833637e11a216555d7e7414 is the first bad commit
commit c8bed9b56861ea626833637e11a216555d7e7414
Author: ...
Date:   Thu Apr 16 16:52:41 2015 +0200

    - Commitmessage: ....

user@host> git bisect reset

在一个命令中拥有它会很好

例子:

git bisect --start HEAD~10 run py.test -k test_something

使用一个命令,我并不是指用分号分隔的 shell 行 :-)

4

1 回答 1

2

查看文档是不可能的,但是如果您要运行测试,也许您会发现这个项目Grosser/git-autobisect很有用。

于 2015-04-17T07:40:29.213 回答