我认为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 行 :-)