[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>
This commit is contained in:
committed by
Linus Torvalds
parent
454fbbcde3
commit
a5eda52bfe
1
cache.h
1
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);
|
||||
|
||||
Reference in New Issue
Block a user