Hi, Junio On Mon, Aug 10, 2020 at 4:44 PM Junio C Hamano <gitster@xxxxxxxxx> wrote: > > * mt/hash-to-hex-thread-safety (2020-06-26) 2 commits > - hex: make hash_to_hex_algop() and friends thread-safe > - compat/win32/pthread: add pthread_once() > > hash_to_hex() used a set of rotating static buffers, which was not > safe to use in a threaded environment. This has been made safer by > using thread-local storage. > > Expecting a reroll. > cf. <CAHd-oW6A2aBHg80R9kyifvF7thwzam5EYYoN9d2TaBcHJrcKWw@xxxxxxxxxxxxxx> I think we can drop this one. Dscho suggested using a different approach for this conversion, with Coccinelle [1]. I won't be able to look at it right now, but if someone wants to give it a try, [2] would be a good starting point. [1]: https://lore.kernel.org/git/nycvar.QRO.7.76.6.2007161214270.54@xxxxxxxxxxxxxxxxx/ [2]: https://lore.kernel.org/git/a35a9334-6db2-d8e3-8ce5-15f15a9005e1@xxxxxx/