News for hackers. Stuff that matters.
Re:The beginning of Git supporting other hash algorithms by ufmace on Sunday March 19, 2017 @12:14PM (#13907937)
Well, it's not hard to update the command-line git client on Unix-y systems with package management. The trouble will be with the hundreds/thousands of other programs that use Git in various ways and are essential to development workflows in various places. Github themselves, Microsoft and Jetbrains IDEs, etc.
Re:The beginning of Git supporting other hash algorithms by CydeWeys on Sunday March 19, 2017 @12:37PM (#13908072)
There's two potentially mitigating factors at play here:

I suspect a lot of the tools you mentioned also already treat hashes as strings, not as 160 bit numeric types. The entire front-end JS for GitHub, for example, just uses strings. That's what I'd do if I were writing IDE integrations and such too.

Secondly, the new format will likely still be a 160-bit numeric type, just calculated using a different hash algorithm (e.g. it might be the first 160 bits of the SHA256 result). The tools you mentioned likely don't have to calculate said hashes, they just display them. The entire GitHub front-end, for instance, just displays whatever is given to it; commit hashes are input data to it, not output data.

Re:The beginning of Git supporting other hash algorithms by eklitzke on Sunday March 19, 2017 @01:09PM (#13908289)
Just using the first 160 bits of a new hash function was proposed at one point, but it's not part of the current plan. The new plan is to introduce full SHA3-256 hashes (which are 256 bits in size). More information here: https://docs.google.com/document/d/18hYAQCTsDgaFUo-VJGhT0Uqy...

(Of course, CLI and frontend tools could still truncate display output to 40 hex characters, but internally full size hashes will be used.)

Re:The beginning of Git supporting other hash algorithms by CydeWeys on Sunday March 19, 2017 @01:25PM (#13908403)
Woah, that's disorienting to be linked to a bluedoc unexpectedly like that, considering I'm not on my work account. I ever recognize one of the authors.
Re:The beginning of Git supporting other hash algorithms by boxfish on Sunday March 19, 2017 @07:23PM (#13910434)
What is a bluedoc?
Re:The beginning of Git supporting other hash algorithms by CydeWeys on Sunday March 19, 2017 @07:39PM (#13910536)
It's just a Google Docs template used for internal engineering design docs at Google. The linked doc is a typical example.
Re:The beginning of Git supporting other hash algorithms by taeric on Sunday March 19, 2017 @12:29PM (#13908030)
Don't most of these go through the git codebase? Or just parse the output of standard commands? Curious what implications the hash has on those.
Re:The beginning of Git supporting other hash algorithms by jlgaddis on Sunday March 19, 2017 @12:42PM (#13908110)
I would assume that most other stuff uses libgit2 (except maybe the Microsoft stuff). Is that not a safe assumption?