13 ms·
My git with different hash would be useless. It wouldn't be able to interact with github, bitbucket, or pull/push to anyone else's repositories. I may as well r
by CJefferson 10y ago
My git with different hash would be useless. It wouldn't be able to interact with github, bitbucket, or pull/push to anyone else's repositories. I may as well rename the package.
Fixing this is going to require breaking backwards compatability with every program that works with git -- it's going to be a huge undertaking, because early in git's design they didn't support multiple hash functions.
- RubyPinch 10y agoTo clarify, I mean to replace the hash with something that would collide far more often, to simulate collisions, to see how git handles them
- CJefferson 10y agoAh, that is a much more sensible request! Sorry for my harsh reply.
- robin__j 10y agohttps://stackoverflow.com/a/34599081 https://stackoverflow.com/a/34599081 In this SO answer does it by reducing the hash size from 160-bit to 4-bit.