pack_one_ref(): use write_packed_entry() to do the writing
commit0f29920f1e0ce00aaf867fdd9ad2174011179f47
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 Apr 2013 19:52:38 +0000 (22 21:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 May 2013 22:33:11 +0000 (1 15:33 -0700)
treee6bd573489e7304a1946dff9ca93f260495e5bc3
parentf85354b5c7b800912743927f4abba022444163fd
pack_one_ref(): use write_packed_entry() to do the writing

Change pack_refs() to work with a file descriptor instead of a FILE*
(making the file-locking code less awkward) and use
write_packed_entry() to do the writing.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c