News for hackers. Stuff that matters.
Re:Git 2.11 has been released by algesten on Wednesday November 30, 2016 @01:44AM (#13068942)
Why doesn't git upon commit ensure the sha-1 is unique by having some nonce as part of it?

I guess if you only work with rebases instead of merges, it should be possible, right?

Re:Git 2.11 has been released by nhaehnle on Wednesday November 30, 2016 @03:15AM (#13069228)
It would defeat the purpose of a content-addressable storage system. The fact that the same file and the same tree will always have the same hash is important for speeding up diffs, merges, and other operations.
Re:Git 2.11 has been released by Manishearth on Wednesday November 30, 2016 @11:25AM (#13071996)
I think the answer is "it doesn't need to", because the probability of a collision is too low.

The issue is with collisions in the truncated hashes which are often used to refer to objects in emails and such. Not the full SHA.