diff options
author | René Scharfe <l.s.r@web.de> | 2020-11-12 13:23:10 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-12 09:40:10 -0800 |
commit | 970909c2a7803564f82ab1d3660d77ad6a44b68f (patch) | |
tree | 8212b09792c126b8a4a06f2b3d7e79de84350eeb /csum-file.h | |
parent | midx: use hashwrite_be64() (diff) | |
download | tgif-970909c2a7803564f82ab1d3660d77ad6a44b68f.tar.xz |
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>
Diffstat (limited to 'csum-file.h')
0 files changed, 0 insertions, 0 deletions