streaming: make streaming-write-entry to be more reusable
authorJunio C Hamano <gitster@pobox.com>
Wed, 7 Mar 2012 10:54:15 +0000 (17:54 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Mar 2012 17:07:37 +0000 (09:07 -0800)
The static function in entry.c takes a cache entry and streams its blob
contents to a file in the working tree. Refactor the logic to a new API
function stream_blob_to_fd() that takes an object name and an open file
descriptor, so that it can be reused by other callers.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found