I guess you gotta start somewhere. Git has supported sha256 since 2.29, but not many people used it because you couldn't host it on github and git 3.0 will make it the default for new repos. The python2 comparsion is fair for tooling though: I wrote a git gui client and I had to handle both 20 and 32 byte object ids and check hash version in the commit-graph file.
It's ironic that this announcement arrives in the same week as the widely disseminated NSA recommendation to move to 384 bit or 512 bit sizes for SHA.
Git 3.0 might be better served by either going that route or specifying a non-cryptographic hash entirely, or declaring SHA-1 an insecure, yet weirdly slow message digest.
I guess you gotta start somewhere. Git has supported sha256 since 2.29, but not many people used it because you couldn't host it on github and git 3.0 will make it the default for new repos. The python2 comparsion is fair for tooling though: I wrote a git gui client and I had to handle both 20 and 32 byte object ids and check hash version in the commit-graph file.
(Full disclosure: I am the author of rocketgit.)
Rocketgit (AGPL) supports SHA-256 since December 2022. 26 repositories use it (1.4%). First repo used it on September 2022.
https://rocketgit.com
SHA-256 git repos are probably unnecessary [1].
[1]: https://blog.gitbutler.com/git-3-sha-256
Previous discussion about that blog post: https://news.ycombinator.com/item?id=49924179
The highest upvoted comment is me calling it "full of mistakes and misleading claims".
[dead]
It's ironic that this announcement arrives in the same week as the widely disseminated NSA recommendation to move to 384 bit or 512 bit sizes for SHA.
Git 3.0 might be better served by either going that route or specifying a non-cryptographic hash entirely, or declaring SHA-1 an insecure, yet weirdly slow message digest.
Still no IPv6...
> When you create a repository, you can now choose either SHA-1 or SHA-256 as its hash algorithm
This means that existing repositories can't use it. So, what's the point? Now we have python2/python3 Ipv4/Ipv6 kind of situation.