List commits
The response lists commits newest first by committer date, not by author date. The order is deterministic: the same request over the same history returns the same sequence. Each page continues that sequence. In rare histories with clock skew, a later page can repeat a commit from an earlier page. Skip a commit SHA that an earlier page returned. The order is not topological. Under clock skew across a merge, a commit can appear before one of its children.
Read the problem type, not only the status.
- 404
https://entire.com/errors/git-read/ref-not-found: a requested ref does not resolve on this placement. A new repository answers this until its first push. - 404
https://entire.com/errors/git-read/object-missing: an object is absent on this placement. Retry. - 404
https://entire.com/errors/git-read/repo-gone: the repository has no refs and the object is absent. - 404 with no type: the token cannot read the repository, or the cause is none of the above.
On a GitHub mirror or a ref forwarded to its owner, a 404 reflects this placement’s view, which can lag the owner. A caller that acts on a mirror must not treat that 404 as final.