开发者

git log --quiet is not quiet

git diff --quiet returns exit code as documented.

git log --qui开发者_开发技巧et behaves exactly as without quiet.

Did I miss something from the docs:

--quiet 
    Disable all output of the program. Implies --exit-code.

git 1.6.0

This is supposed to be used in a script to compare mybranch with origin/mybranch, to know should I push it or not.


git rev-list -1 origin/master..master | wc -l

from the link suggested in the comments seems to be the best answer here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜