【发布时间】:2013-04-06 10:16:13
【问题描述】:
使用git status,我可以获得有关未发布提交计数的信息:
» git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
# (use "git push" to publish your local commits)
#
nothing to commit, working directory clean
我想使用 GitPython 获得未发布的提交(或计数)。我在文档中找到了repo.git.status(),但这不是我想要的。
【问题讨论】: