sha1-name: make sort_ambiguous_oid_array() thread-safe
commit7cfcb16b0ebd8294b2158669e55b79445b48fb31
authorRené Scharfe <l.s.r@web.de>
Tue, 20 Aug 2019 18:49:12 +0000 (20 20:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Aug 2019 20:59:59 +0000 (20 13:59 -0700)
tree2c7f5ffa98348dcda605eebf5fd10cb9d469ad35
parent75b2f01a0f642b39b0f29b6218515df9b5eb798e
sha1-name: make sort_ambiguous_oid_array() thread-safe

Use QSORT_S instead of QSORT, which allows passing the repository
pointer to the comparison function without using a static variable.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-name.c