summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@osdl.org>2006-05-24 08:30:54 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-24 13:36:13 -0700
commit4d548150ace0816dd5fe678cdbde75b13d5e5249 (patch)
tree87a802994d97a27a7fee110613e4eaa004165eae /builtin-rev-list.c
parentBuiltin git-cat-file (diff)
downloadtgif-4d548150ace0816dd5fe678cdbde75b13d5e5249.tar.xz
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 <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-rev-list.c')
0 files changed, 0 insertions, 0 deletions