mirror of
https://github.com/git/git.git
synced 2025-12-23 12:14:22 +01:00
We have two packfile stream consumers, index-pack and unpack-objects, that allow excess payload after the packfile stream data. Their code to relay excess data hasn't changed significantly since their original implementation that appeared in67e5a5ec(git-unpack-objects: re-write to read from stdin, 2005-06-28) and9bee2478(mimic unpack-objects when --stdin is used with index-pack, 2006-10-25). These code blocks contain hand-rolled loops using xwrite(), written before our write_in_full() helper existed. This helper now provides the same functionality. Replace these loops with write_in_full() for shorter, clearer code. Update related variables accordingly. Signed-off-by: Junio C Hamano <gitster@pobox.com>
52 KiB
52 KiB