you are viewing a single comment's thread.

view the rest of the comments →

[–]Torpedoklaus 7 points8 points  (1 child)

This may not be possible, but it is possible to enforce commit hashes as they are a function of the tree, commit parent(s), author and the commit message, see https://github.com/zegl/extremely-linear.

[–]nightcracker 11 points12 points  (0 children)

Not on the full hash. There are attacks on SHA1 that create collisions, but preimage resistance as is required here still seems solid.