aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-22 01:28:13 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-26 12:37:49 -0700
commitf3123c4ab3d3698262e59561ac084de45b10365a (patch)
tree5184f41aebc18fdd90c27b76b8fb230fda58fb84 /cache.h
parent7ebb6fcafed2a3d47390e6f47ff20a98fe451409 (diff)
downloadgit-f3123c4ab3d3698262e59561ac084de45b10365a.tar.gz
git-f3123c4ab3d3698262e59561ac084de45b10365a.tar.xz
pack-objects: Allow use of pre-generated pack.
git-pack-objects can reuse pack files stored in $GIT_DIR/pack-cache directory, when a necessary pack is found. This is hopefully useful when upload-pack (called from git-daemon) is expected to receive requests for the same set of objects many times (e.g full cloning request of any project, or updates from the set of heads previous day to the latest for a slow moving project). Currently git-pack-objects does *not* keep pack files it creates for reusing. It might be useful to add --update-cache option to it, which would allow it store pack files it created in the pack-cache directory, and prune rarely used ones from it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index d77601682..2e36cc5b8 100644
--- a/cache.h
+++ b/cache.h
@@ -413,4 +413,5 @@ static inline int sane_case(int x, int high)
return x;
}
+extern int copy_fd(int ifd, int ofd);
#endif /* CACHE_H */