Updating the Git protocol for SHA-256
Updating the Git protocol for SHA-256
Posted Jun 20, 2020 18:42 UTC (Sat) by hmh (subscriber, #3838)In reply to: Updating the Git protocol for SHA-256 by cyphar
Parent article: Updating the Git protocol for SHA-256
This link you sent is much better, the other one lacks essential information...
I am quite sure git would severely restrict the allowed hashes, but at least the design of multihash seems sane and safely extensible, including when ones does the short-sighted error of enshrining short prefixes of the hash anywhere that is not a throw away command line call... A bad practice that is very common among git users.
Posted Jun 20, 2020 23:17 UTC (Sat)
by mathstuf (subscriber, #69389)
[Link]
"Best practice" for short usage in more permanent places includes the date (or tag description) and summary of the commit in question (which both greatly ease conflict resolution when it occurs and gives some idea of what's going on without having to copy/paste the has yourself).
Updating the Git protocol for SHA-256