diff options
author | René Scharfe <l.s.r@web.de> | 2020-08-12 18:52:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-17 10:29:39 -0700 |
commit | a698d67b08f98ddac0e6df898fbfab5b4fbd36b1 (patch) | |
tree | ac14f756e96b831cb4c304bb7b83ceabcafdbeab /t/t6020-merge-df.sh | |
parent | midx: use buffered I/O to talk to pack-objects (diff) | |
download | tgif-a698d67b08f98ddac0e6df898fbfab5b4fbd36b1.tar.xz |
upload-pack: use buffered I/O to talk to rev-list
Like f0bca72dc77 (send-pack: use buffered I/O to talk to pack-objects,
2016-06-08), significantly reduce the number of system calls and
simplify the code for sending object IDs to rev-list by using stdio's
buffering.
Take care to handle errors immediately to get the correct error code,
and to flush the buffer explicitly before closing the stream in order to
catch any write errors for these last bytes.
Helped-by: Chris Torek <chris.torek@gmail.com>
Helped-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6020-merge-df.sh')
0 files changed, 0 insertions, 0 deletions