summaryrefslogtreecommitdiff
path: root/compat/terminal.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2020-11-01 09:52:12 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-01 15:52:51 -0800
commit06d43fad18a2bb85b1a224b07c4cc572c7e41f7e (patch)
tree660ced64b50908f3e501275d96129523978fa4ce /compat/terminal.c
parentGit 2.29.2 (diff)
downloadtgif-06d43fad18a2bb85b1a224b07c4cc572c7e41f7e.tar.xz
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>
Diffstat (limited to 'compat/terminal.c')
0 files changed, 0 insertions, 0 deletions