Lurker News

Comments (485) 80 threads

Show all comments

Showing thread 45 of 80

imron2 replies#
I wonder if there are any 2 single commits on Github from different repositories that have the same SHA1 hash.
bjornsing1 reply#
If there was, then that would have been the first SHA-1 collision, right? ;P
imron#
Yes, but is anyone looking?
Zitrax1 reply#
How many commits are there in total on Github ?
imron#
They have almost 83,000,000 public repositories (https://api.github.com/repositories?since=82960000).

Many of them will be forks of the same projects, but I think it's fair to say there's a sizable number of unique commits.
Granted, the number will only be a tiny fraction of total address space of SHA1, but it'd still be an interesting thing to investigate.