diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2005-07-10 18:25:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-10 15:39:08 -0700 |
commit | a5eda52bfe8f0afe3abc0c7eaceb487c2ffb7ebb (patch) | |
tree | 4a34e5e63ba2ff742113e27077b03318d9747dc4 /cache.h | |
parent | 454fbbcde3beb5eb36a4554e5b7074f8d501a6f1 (diff) | |
download | git-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |