Re:The beginning of Git supporting other hash algorithms
by dahart on Sunday March 19, 2017 @01:22PM
(#13908372)
Linus has explained why he picked SHA-1. I'm not Linus, and I'm not defending his choice, but he has said repeatedly that git's hash is primarily for indexing and error correction, and not primarily for security. Clearly he felt like SHA-1 was "good enough". And if you have something that's "good enough" there are reasons not to write code for alternatives you're not going to use.
[ Parent
| on HN ]
Re:The beginning of Git supporting other hash algorithms
by snakeanus on Sunday March 19, 2017 @03:15PM
(#13909040)
>but he has said repeatedly that git's hash is primarily for indexing and error correction, and not primarily for security
And he was wrong as openpgp signatures on commits and tags are a thing.
Not sure when that feature was introduced however, I doubt that it existed in the first version of git. That being said he should have changed the hash function the moment that feature was introduced.
Re:The beginning of Git supporting other hash algorithms
by CopperWing on Monday March 20, 2017 @06:34AM
(#13913011)
Signatures were introduced in git as part of the response to the kernel.org hack in 2011.