diff options
author | Nicolas Pitre <nico@cam.org> | 2008-05-14 01:32:48 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-13 22:42:33 -0700 |
commit | bbac73117ebed9f02ccae3df45f4baa0c793dab7 (patch) | |
tree | e10995ff139e3074bdbf85526c2013f73beae995 /cache.h | |
parent | 9e7d501990a9c63db264f3185fc311f446196427 (diff) | |
download | git-bbac73117ebed9f02ccae3df45f4baa0c793dab7.tar.gz git-bbac73117ebed9f02ccae3df45f4baa0c793dab7.tar.xz |
add a force_object_loose() function
This is meant to force the creation of a loose object even if it
already exists packed. Needed for the next commit.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -506,6 +506,7 @@ extern void * read_sha1_file(const unsigned char *sha1, enum object_type *type, extern int hash_sha1_file(const 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, enum object_type, unsigned char *); +extern int force_object_loose(const unsigned char *sha1, time_t mtime); extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type); |