author | Junio C Hamano <gitster@pobox.com> | |
Wed, 7 Mar 2012 10:54:15 +0000 (17:54 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 7 Mar 2012 17:07:37 +0000 (09:07 -0800) | ||
commit | 47a02ff2ca821c52268197dd5fa46cd60a2e94bc | |
tree | 9c8aae0097d5285e105295b276ad20eeefd6a7e4 | tree | snapshot |
parent | 2980b0de1b387e4f9a63c50ca741271990c849d5 | commit | diff |
streaming: make streaming-write-entry to be more reusable
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>
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>
entry.c | diff | blob | history | |
streaming.c | diff | blob | history | |
streaming.h | diff | blob | history |