aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-07-10 18:25:38 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-10 15:39:08 -0700
commita5eda52bfe8f0afe3abc0c7eaceb487c2ffb7ebb (patch)
tree4a34e5e63ba2ff742113e27077b03318d9747dc4 /cache.h
parent454fbbcde3beb5eb36a4554e5b7074f8d501a6f1 (diff)
downloadgit-a5eda52bfe8f0afe3abc0c7eaceb487c2ffb7ebb.tar.gz
[PATCH] write_sha1_to_fd()
Add write_sha1_to_fd(), which writes an object to a file descriptor. This includes support for unpacking it and recompressing it. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 84d43d366c..4d2bde568b 100644
--- a/cache.h
+++ b/cache.h
@@ -185,6 +185,7 @@ extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned l
extern int read_tree(void *buffer, unsigned long size, int stage);
extern int write_sha1_from_fd(const unsigned char *sha1, int fd);
+extern int write_sha1_to_fd(int fd, const unsigned char *sha1);
extern int has_sha1_pack(const unsigned char *sha1);
extern int has_sha1_file(const unsigned char *sha1);