summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-04 21:42:38 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-05 14:55:11 -0800
commitd66b37bb19ff7a347ba4ccbcdc11b00772518b57 (patch)
treea440601e5e84019b12d4f2b82fe698d93783e361 /cache.h
parent1cfe77333f274c9ba9879c2eb61057a790eb050f (diff)
downloadgit-d66b37bb19ff7a347ba4ccbcdc11b00772518b57.tar.gz
Add pretend_sha1_file() interface.
The new interface allows an application to temporarily hash a small number of objects and pretend that they are available in the object store without actually writing them. 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 38a9bc02f6..87142571b3 100644
--- a/cache.h
+++ b/cache.h
@@ -257,6 +257,7 @@ extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, uns
extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size);
extern int hash_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *sha1);
extern int write_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *return_sha1);
+extern int pretend_sha1_file(void *, unsigned long, const char *, unsigned char *);
extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type);