diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-15 09:17:38 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-18 10:11:29 +0300 |
commit | ad8972150887a8ed3dd4869fc9318cc2e48dd69f (patch) | |
tree | 14caab692aff3f2be7365e7c6f18fa1e5aa3dfe3 /cache.h | |
parent | c054d64e8783e5ac2fa68c382f00df9087bca0f9 (diff) |
fetch-pack: -k option to keep downloaded pack.
Split out the functions that deal with the socketpair after
finishing git protocol handshake to receive the packed data into
a separate file, and use it in fetch-pack to keep/explode the
received pack data. We earlier had something like that on
clone-pack side once, but the list discussion resulted in the
decision that it makes sense to always keep the pack for
clone-pack, so unpacking option is not enabled on the clone-pack
side, but we later still could do so easily if we wanted to with
this change.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -338,4 +338,9 @@ extern char git_default_name[MAX_GITNAME]; extern char git_commit_encoding[MAX_ENCODING_LENGTH]; extern int copy_fd(int ifd, int ofd); + +/* Finish off pack transfer receiving end */ +extern int receive_unpack_pack(int fd[2], const char *me, int quiet); +extern int receive_keep_pack(int fd[2], const char *me); + #endif /* CACHE_H */ |