diff options
author | Thomas Rast <trast@student.ethz.ch> | 2012-08-03 14:16:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-03 12:13:43 -0700 |
commit | f633ea2c736a2a38e92fcf61e90c8adadc5c504d (patch) | |
tree | e92dee05f75ed994ea95322cc9dfcb75cc8c6aa0 /t/t3510-cherry-pick-sequence.sh | |
parent | Git 1.7.9.7 (diff) | |
download | tgif-f633ea2c736a2a38e92fcf61e90c8adadc5c504d.tar.xz |
merge-recursive: eliminate flush_buffer() in favor of write_in_full()
flush_buffer() is a thin wrapper around write_in_full() with two very
confusing properties:
* It runs a loop to handle short reads, ensuring that we write
everything. But that is precisely what write_in_full() does!
* It checks for a return value of 0 from write_in_full(), which cannot
happen: it returns this value only if count=0, but flush_buffer()
will never call write_in_full() in this case.
Remove it.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3510-cherry-pick-sequence.sh')
0 files changed, 0 insertions, 0 deletions