我试图查找在两个特定提交之间签入的提交的内容。在
在git中我会做git rev-list --ancestry-path <older_commit_sha>..<newer_commit_sha>
。在
在gitpython中,由于看起来没有一种直接的方法来实现,所以我通过repo.git.execute()
调用确切的命令。
输出是一个提交id字符串(hex-SHA)。在
现在,gitpython中有没有一种方法可以从execute()
给出的十六进制SHA开始创建一个有效的Commit
对象吗?在
Tags:
在经过多次试探之后,考虑到这个问题没有得到太多的牵引力,我求助于使用
.execute()
。 具体来说:当然,}是
oldCommit
和{git.Commit
对象。在相关问题 更多 >
编程相关推荐