Git 3.0's upcoming SHA-256 default will be a costly mistake
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Git 3.0's upcoming SHA-256 default will be a costly mistake
Unofficial Hacker News client; not affiliated with Y Combinator.
purpleidea · · focus · HN ↗
This will be a train wreck. I hope they don't release before adding compatibility modes to keep the existing sha1's around in the database.
oasisaimlessly · · focus · HN ↗
[1]: <a href="https://github.com/newren/git-filter-repo" rel="nofollow">https://github.com/newren/git-filter-repo
[2]: <a href="https://htmlpreview.github.io/?https://github.com/newren/git-filter-repo/blob/docs/html/git-filter-repo.html" rel="nofollow">https://htmlpreview.github.io/?https://github.com/newren/git...
donatj · · focus · HN ↗
purpleidea · · focus · HN ↗
functional_dev · · focus · HN ↗
[dead]
diegocg · · focus · HN ↗
I don't think this is going to be a problem at all.
beart · · focus · HN ↗
Not talking about archived code, but active projects that pre-date git 3.0
cylemons · · focus · HN ↗
That way an old commit with a message having a sha1 can reference the archived version, and new commits reference the active version.
krupan · · focus · HN ↗
samus · · focus · HN ↗
hinkley · · focus · HN ↗
samspot · · focus · HN ↗
okanat · · focus · HN ↗
windsurfer · · focus · HN ↗
Dylan16807 · · focus · HN ↗
But also collisions there aren't a big deal. People will cite short hashes when referring to things and that's not "broken".
windsurfer · · focus · HN ↗
schacon · · focus · HN ↗
[deleted] · · focus · HN ↗
[deleted]
112233 · · focus · HN ↗
For massive perf and mem use damage. But oh well. And then we will wait for official version
schacon · · focus · HN ↗
purpleidea · · focus · HN ↗
OneDeuxTriSeiGo · · focus · HN ↗
One example is to maintain git-replace refs for the rewritten SHAs but there also exist config flags to enable object format compatibility extensions that help translate the SHAs back and forth.
<a href="https://git-scm.com/docs/git-replace" rel="nofollow">https://git-scm.com/docs/git-replace