On 2025-08-19 at 14:25:27, Askar Safin wrote: > Hi, git people. I just noticed that you plan to change default hashsum in git 3.0. > Cool! Thanks, I'm glad you're excited about it. I am, too. > Please, prepare for regular change of hashsum. > No hash is forever. Be prepared to change hashsum algorithm once in 10 years. > See here for details, i. e. why no hash is forever: https://valerieaurora.org/hash.html Yes, this was a goal of the project when I did that work. There are many fewer places where we have hard-coded hash values in the tests and a lot more places where we compute values (for instance, if what the test wants to know is that we're three commits before HEAD, then we write `HEAD~3` instead of a specific object ID). Instead of lots of hard-coded 20- and 40-based constants throughout the code, we have a few #define constants and a hash algorithm abstraction. If we need to change the hash algorithm again, it will require substantially less work, and we'll have only 40 test files to change this time (which is a major improvement over last time). I hope people also feel that the refactoring we did has made our codebase easier to understand and more maintainable. -- brian m. carlson (they/them) Toronto, Ontario, CA
Attachment:
signature.asc
Description: PGP signature