path: root/COPYING
diff options
authorLinus Torvalds <>2006-05-24 15:30:54 (GMT)
committerJunio C Hamano <>2006-05-24 20:36:13 (GMT)
commit4d548150ace0816dd5fe678cdbde75b13d5e5249 (patch)
tree87a802994d97a27a7fee110613e4eaa004165eae /COPYING
parentf81daefe56b3c97b93a851e1ada14eeca0dea47a (diff)
Clean up sha1 file writing
This cleans up and future-proofs the sha1 file writing in sha1_file.c. In particular, instead of doing a simple "write()" call and just verifying that it succeeds (or - as in one place - just assuming it does), it uses "write_buffer()" to write data to the file descriptor while correctly checking for partial writes, EINTR etc. It also splits up write_sha1_to_fd() to be a lot more readable: if we need to re-create the compressed object, we do so in a separate helper function, making the logic a whole lot more modular and obvious. Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions