3 ms·
I think you could solve most problems by just enabling a different hash function with no backwards compatibility. Repositories have a format-version somewhere,
by adrianN 10y ago
I think you could solve most problems by just enabling a different hash function with no backwards compatibility. Repositories have a format-version somewhere, and migrating from git to git-with-new-hash should be a fairly simple operation. You can always edit commit messages to add "corresponds to commit <sha1> in <old repo>". This is of course not as nice as full backwards compatibility, but it gets rid of the security problem for relatively cheap.