]> git.ipfire.org Git - thirdparty/git.git/commit
pack-write: use hashwrite_be64()
authorRené Scharfe <l.s.r@web.de>
Thu, 12 Nov 2020 12:23:10 +0000 (13:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Nov 2020 17:40:10 +0000 (09:40 -0800)
commit970909c2a7803564f82ab1d3660d77ad6a44b68f
tree8212b09792c126b8a4a06f2b3d7e79de84350eeb
parentef1b853c15d443b057e5a6306c89b869168a8270
pack-write: use hashwrite_be64()

Call hashwrite_be64() to write a 64-bit value instead of open-coding it
using htonl() and hashwrite().  This shortens the code, gets rid of a
buffer and several magic numbers, and makes the intent clearer.

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