|
|
Log in / Subscribe / Register

Whatever happened to SHA-256 support in Git?

Whatever happened to SHA-256 support in Git?

Posted Oct 4, 2023 2:37 UTC (Wed) by xnox (subscriber, #63320)
Parent article: Whatever happened to SHA-256 support in Git?

Is conversion from sha1 to sha256 git format reproducible?


to post comments

Whatever happened to SHA-256 support in Git?

Posted Oct 4, 2023 13:44 UTC (Wed) by geert (subscriber, #98403) [Link]

Yes it is. Both hashes are (eventually[*]) made from the same input.

[*] For blobs (files), this is obvious, as the hash is calculated from the file contents plus some file metadata.
For all other objects (trees, commits), the hash is calculated from tree or commit info plus hashes calculated before.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds