summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-15 06:17:38 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-18 07:11:29 (GMT)
commitad8972150887a8ed3dd4869fc9318cc2e48dd69f (patch)
tree14caab692aff3f2be7365e7c6f18fa1e5aa3dfe3 /cache.h
parentc054d64e8783e5ac2fa68c382f00df9087bca0f9 (diff)
downloadgit-ad8972150887a8ed3dd4869fc9318cc2e48dd69f.zip
git-ad8972150887a8ed3dd4869fc9318cc2e48dd69f.tar.gz
git-ad8972150887a8ed3dd4869fc9318cc2e48dd69f.tar.bz2
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index c78d8ae..cb87bec 100644
--- a/cache.h
+++ b/cache.h
@@ -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 */