我正在尝试比较两个存储库(一个是另一个叉子(,官方方式,使用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从两个存储库中检索所有提交时,然后测量交叉点,我得到了共享相同sha
的218个投入。在查询下方,我用来从一个仓库中检索提交:
{
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
}
}
}
}
}
}
}
如何解释?为什么两个结果都不同?
fyi:用"测量交叉点"我的意思是我比较两个存储库中每个提交的ID(sha
(。
两个分支上的日期都应该定义时间 ofer ,如"跨时间比较提交"中所述。
在您的情况下,确切的错误消息是:
There isn’t anything to compare.
We couldn’t figure out how to compare these references, do they point to valid commits?
似乎表明叉子在2017-02-11中不存在。
如果将叉子与原始仓库进行比较,则最古老的"分叉"提交是从2017年12月开始。
目前,叉子上没有有效的提交(即特定于叉子(。
(自:" 2017-02-11t00:00:00 Z"(和叉子的开始(2017年12月上旬(,您仍然可能会找到268 common Common 。(由于叉子仅在一个月后开始(