pack-write: use hashwrite_be32() instead of double-buffering array
commit06d43fad18a2bb85b1a224b07c4cc572c7e41f7e
authorRené Scharfe <l.s.r@web.de>
Sun, 1 Nov 2020 08:52:12 +0000 (1 09:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Nov 2020 23:52:51 +0000 (1 15:52 -0800)
tree660ced64b50908f3e501275d96129523978fa4ce
parent898f80736c75878acc02dc55672317fcc0e0a5a6
pack-write: use hashwrite_be32() instead of double-buffering array

hashwrite() already buffers writes, so pass the fanout table entries
individually via hashwrite_be32(), which also does the endianess
conversion for us.  This avoids a memory copy, shortens the code and
reduces the number of magic numbers.

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