bisect: use oid_to_hex_r() instead of memcpy()+oid_to_hex()
authorRené Scharfe <redacted>
Sun, 2 Aug 2020 14:36:50 +0000 (16:36 +0200)
committerJunio C Hamano <redacted>
Sun, 2 Aug 2020 20:02:52 +0000 (13:02 -0700)
commit7d23ff818f156da48882bec9ac84fb4e33dd619a
tree8f98bba99efd6d24a75bf3a8ecd342759eddbf4c
parentb3d7a52fac39193503a0b6728771d1bf6a161464
bisect: use oid_to_hex_r() instead of memcpy()+oid_to_hex()

Write the hexadecimal object ID directly into the destination buffer
using oid_to_hex_r() instead of writing it into a static buffer first
using oid_to_hex() and then copying it from there using memcpy().
This is shorter, simpler and a bit more efficient.

Reviewed-by: brian m. carlson <redacted>
Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
bisect.c
git clone https://git.99rst.org/PROJECT