4 ms·
I wonder what the number of commits is before you need to start worrying about 7 character collisions. (Birthday problem anyone?)
by yellow_lead 5y ago
I wonder what the number of commits is before you need to start worrying about 7 character collisions. (Birthday problem anyone?)
- sltkr 5y agoYou answered your own question. After 2^14 = 16,384 commits, there is a 50% chance of a collision. So most large repos will have collisions. This isn't a problem for Git. It accepts arbitrary prefixes so you'll just have to type a few more characters if you want to refer to a commit whose 28-bit prefix (7 hex digits) is not unique.