]> git.ipfire.org Git - thirdparty/git.git/commit - pack-write.c
pack-write: use hashwrite_be32() in write_idx_file()
authorRené Scharfe <l.s.r@web.de>
Sat, 19 Sep 2020 18:26:36 +0000 (20:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 19 Sep 2020 19:15:36 +0000 (12:15 -0700)
commit389cf68caf8bc79669133c8744b06092925461e0
tree8540e4b16e233da5d7bd89f2311adc346a50369e
parent7744a5d6921c457a05224cd7f5554e972df634b0
pack-write: use hashwrite_be32() in write_idx_file()

Call hashwrite_be32() instead of open-coding it.  This shortens the code
a bit and makes it easier to read.

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