]> git.ipfire.org Git - thirdparty/git.git/commit
midx: use hashwrite_u8() in write_midx_header()
authorRené Scharfe <l.s.r@web.de>
Sun, 6 Sep 2020 08:59:02 +0000 (10:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Sep 2020 20:40:40 +0000 (13:40 -0700)
commit014f1447f0382b323b53006a65dd2b8383427dc8
tree92e26500711e5bbeb318da172742a5cb08d5cb89
parentccb181d0f053100a988ee0a240e3c0c0bb962d4d
midx: use hashwrite_u8() in write_midx_header()

Emit byte-sized values using hashwrite_u8() instead of buffering them
locally first.  The hashwrite functions already do their own buffering,
so this double-buffering does not reduce the number of system calls.
Getting rid of it shortens and simplifies the code a bit.

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