我正在尝试比较两个存储库(一个是另一个存储库的分支),官方方式,使用compare
并回到 2017-02-11:
https://github.com/bitcoin/bitcoin/compare/master@{2017-02-11}...UnitedBitcoin:master@{2017-02-11}
返回:
There isn’t anything to compare.
但是当我使用 Github GraphQL 从两个存储库中检索所有提交,然后测量交集时,我得到了 218 个共享相同的提交sha
。在我用来从一个 repo 中检索提交的查询下方:
{
repository(owner: "bitcoin", name: "bitcoin") {
defaultBranchRef {
target {
... on Commit {
history(first: 100, since: "2017-02-11T00:00:00Z") {
totalCount
edges {
node {
committedDate
oid
}
}
pageInfo {
startCursor
endCursor
hasNextPage
}
}
}
}
}
}
}
这怎么解释?为什么两个结果不同?
仅供参考:对于“测量交叉点”,我的意思是我比较sha
两个存储库中每个提交的 ID ()。